Definition at line 46 of file VP1Floor.cxx.
◆ Imp()
VP1Floor::Imp::Imp |
( |
VP1Floor * |
tc, |
|
|
SoSeparator * |
attachsep |
|
) |
| |
◆ rebuild3DObjects()
void VP1Floor::Imp::rebuild3DObjects |
( |
| ) |
|
Definition at line 91 of file VP1Floor.cxx.
96 sep->removeAllChildren();
98 sep =
new SoSeparator;
102 const bool save =
sep->enableNotify(
false);
104 int nmax;
double distmax;
111 SoVertexProperty * floor_vertices =
new SoVertexProperty();
114 for (
int ix = -
nmax; ix<=
nmax; ++ix) {
116 floor_vertices->vertex.set1Value(ivert++,
x,
vertpos,-distmax);
117 floor_vertices->vertex.set1Value(ivert++,
x,
vertpos,+distmax);
120 for (
int iz = -
nmax; iz<=
nmax; ++iz) {
122 floor_vertices->vertex.set1Value(ivert++,-distmax,
vertpos,
z);
123 floor_vertices->vertex.set1Value(ivert++,+distmax,
vertpos,
z);
129 SoLineSet *
line =
new SoLineSet();
131 line->numVertices.setNum(nsublines);
132 for (
int i=0;
i<nsublines;++
i)
133 line->numVertices.set1Value(
i,2);
134 line->vertexProperty = floor_vertices;
135 line->numVertices.enableNotify(
TRUE);
136 line->numVertices.touch();
142 sep->enableNotify(
true);
◆ updateColour()
void VP1Floor::Imp::updateColour |
( |
| ) |
|
Definition at line 149 of file VP1Floor.cxx.
152 if (!
sep||
sep->getNumChildren()<1)
154 SoNode *
n =
sep->getChild(0);
155 if (!
n||
n->getTypeId()!=SoLineSet::getClassTypeId())
157 SoLineSet *
line =
static_cast<SoLineSet*
>(
n);
158 SoVertexProperty * vertices =
static_cast<SoVertexProperty *
>(
line->vertexProperty.getValue());
◆ attachSep
SoSeparator* VP1Floor::Imp::attachSep |
◆ colourAndTransp
SbColor4f VP1Floor::Imp::colourAndTransp |
◆ extent
double VP1Floor::Imp::extent |
◆ sep
SoSeparator* VP1Floor::Imp::sep |
◆ shown
bool VP1Floor::Imp::shown |
◆ spacing
double VP1Floor::Imp::spacing |
◆ theclass
◆ vertpos
double VP1Floor::Imp::vertpos |
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)