Definition at line 18 of file VP1Lines.cxx.
◆ Imp()
VP1Lines::Imp::Imp |
( |
VP1Lines * |
tc, |
|
|
SoSeparator * |
attachsep |
|
) |
| |
◆ rebuild3DObjects()
void VP1Lines::Imp::rebuild3DObjects |
( |
| ) |
|
Definition at line 66 of file VP1Lines.cxx.
71 sep->removeAllChildren();
73 sep =
new SoSeparator;
77 const bool save =
sep->enableNotify(
false);
79 SoVertexProperty * line_vertices =
new SoVertexProperty();
81 line_vertices->vertex.set1Value(0,0.0,0.0,0.0);
86 SoLineSet *
line =
new SoLineSet();
90 line->vertexProperty = line_vertices;
91 line->numVertices.enableNotify(
TRUE);
92 line->numVertices.touch();
98 SbVec3f
p1 = line_vertices->vertex[0].getValue();
99 SbVec3f
p2 = line_vertices->vertex[1].getValue();
100 SoCylinder * cylinder =
new SoCylinder;
101 cylinder->radius = 4.0;
105 cylinder->height = height;
108 m.setTranslate(SbVec3f(0,0.5*height,0));
118 SoMatrixTransform * mt =
new SoMatrixTransform;
119 mt->matrix.setValue(
mat);
121 sep->addChild(cylinder);
127 sep->enableNotify(
true);
◆ updateColour()
void VP1Lines::Imp::updateColour |
( |
| ) |
|
Definition at line 134 of file VP1Lines.cxx.
137 if (!
sep||
sep->getNumChildren()<1)
139 SoNode *
n =
sep->getChild(0);
140 if (!
n||
n->getTypeId()!=SoLineSet::getClassTypeId())
142 SoLineSet *
line =
static_cast<SoLineSet*
>(
n);
143 SoVertexProperty * vertices =
static_cast<SoVertexProperty *
>(
line->vertexProperty.getValue());
◆ attachSep
SoSeparator* VP1Lines::Imp::attachSep |
◆ colourAndTransp
SbColor4f VP1Lines::Imp::colourAndTransp |
◆ direction
SbVec3f VP1Lines::Imp::direction |
◆ sep
SoSeparator* VP1Lines::Imp::sep |
◆ shown
bool VP1Lines::Imp::shown |
◆ theclass
The documentation for this class was generated from the following file: