Definition at line 32 of file VP1CartesianGrid.cxx.
◆ Imp()
◆ rebuild3DObjects()
void VP1CartesianGrid::Imp::rebuild3DObjects |
( |
| ) |
|
Definition at line 76 of file VP1CartesianGrid.cxx.
81 sep->removeAllChildren();
83 sep =
new SoSeparator;
87 const bool save =
sep->enableNotify(
false);
89 int nmax;
double distmax;
96 SoVertexProperty * grid_cartesian_vertices =
new SoVertexProperty();
102 for (
int ix = -
nmax; ix<=
nmax; ++ix)
103 for (
int iz = -
nmax; iz<=
nmax; ++iz) {
106 grid_cartesian_vertices->vertex.set1Value(ivert++,
x,-distmax,
z);
107 grid_cartesian_vertices->vertex.set1Value(ivert++,
x,+distmax,
z);
112 for (
int iy = -
nmax; iy<=
nmax; ++iy) {
114 for (
int ix = -
nmax; ix<=
nmax; ++ix) {
116 grid_cartesian_vertices->vertex.set1Value(ivert++,
x,
y,-distmax);
117 grid_cartesian_vertices->vertex.set1Value(ivert++,
x,
y,+distmax);
120 for (
int iz = -
nmax; iz<=
nmax; ++iz) {
122 grid_cartesian_vertices->vertex.set1Value(ivert++,-distmax,
y,
z);
123 grid_cartesian_vertices->vertex.set1Value(ivert++,+distmax,
y,
z);
130 SoLineSet *
line =
new SoLineSet();
132 line->numVertices.setNum(nsublines);
133 for (
int i=0;
i<nsublines;++
i)
134 line->numVertices.set1Value(
i,2);
135 line->vertexProperty = grid_cartesian_vertices;
136 line->numVertices.enableNotify(
TRUE);
137 line->numVertices.touch();
143 sep->enableNotify(
true);
◆ updateColour()
void VP1CartesianGrid::Imp::updateColour |
( |
| ) |
|
Definition at line 150 of file VP1CartesianGrid.cxx.
153 if (!
sep||
sep->getNumChildren()<1)
155 SoNode *
n =
sep->getChild(0);
156 if (!
n||
n->getTypeId()!=SoLineSet::getClassTypeId())
158 SoLineSet *
line =
static_cast<SoLineSet*
>(
n);
159 SoVertexProperty * vertices =
static_cast<SoVertexProperty *
>(
line->vertexProperty.getValue());
◆ attachSep
SoSeparator* VP1CartesianGrid::Imp::attachSep |
◆ colourAndTransp
SbColor4f VP1CartesianGrid::Imp::colourAndTransp |
◆ extent
double VP1CartesianGrid::Imp::extent |
◆ sep
SoSeparator* VP1CartesianGrid::Imp::sep |
◆ shown
bool VP1CartesianGrid::Imp::shown |
◆ spacing
double VP1CartesianGrid::Imp::spacing |
◆ theclass
The documentation for this class was generated from the following file:
static bool calcParsFromExtentAndSpacing(VP1HelperClassBase *, const double &extent, const double &spacing, const int &nmaxlimit, int &nmax, double &distmax)