Definition at line 75 of file VP1VertexCollection.cxx.
◆ VertexHandle()
◆ ~VertexHandle()
VP1VertexCollection::Imp::VertexHandle::~VertexHandle |
( |
| ) |
|
|
inline |
◆ actualBuildShape()
void VP1VertexCollection::Imp::VertexHandle::actualBuildShape |
( |
VertexSysController * |
controller | ) |
|
|
inlineprivate |
Definition at line 198 of file VP1VertexCollection.cxx.
202 SoPointSet *
points =
new SoPointSet;
203 SoVertexProperty *
vertices =
new SoVertexProperty;
211 SoTranslation * translation =
new SoTranslation;
212 translation->translation.setValue (
pos.x(),
pos.y(),
pos.z() );
213 m_sep->addChild ( translation );
221 double a(errMat(0,0)),
b(errMat(0,1)),
c(errMat(0,2)),
222 d(errMat(1,1)),
e(errMat(1,2)),
226 double sixthrootofdet =
exp(
log(
det)/6.0);
227 double invdet = 1.0/sixthrootofdet;
234 SbMatrix sbMat(
a,
b,
c,0,
238 SoMatrixTransform * matTrans =
new SoMatrixTransform();
239 matTrans->matrix.setValue(sbMat);
240 m_sep->addChild (matTrans);
246 SoSphere * sphere =
new SoSphere;
247 sphere->radius = fabs(
r);
248 m_sep->addChild ( sphere );
◆ attached()
bool VP1VertexCollection::Imp::VertexHandle::attached |
( |
| ) |
const |
|
inline |
◆ collHandle()
◆ determineMaterial()
SoMaterial* VP1VertexCollection::Imp::VertexHandle::determineMaterial |
( |
| ) |
|
|
inline |
◆ ensureAttached()
void VP1VertexCollection::Imp::VertexHandle::ensureAttached |
( |
SoSeparator * |
collSep, |
|
|
VertexSysController * |
controller |
|
) |
| |
|
inline |
◆ ensureDetached()
void VP1VertexCollection::Imp::VertexHandle::ensureDetached |
( |
SoSeparator * |
collSep | ) |
|
|
inline |
◆ rerandomiseRandomMaterial()
void VP1VertexCollection::Imp::VertexHandle::rerandomiseRandomMaterial |
( |
| ) |
|
|
inline |
Definition at line 150 of file VP1VertexCollection.cxx.
160 r = (
rand() /
static_cast<double>(RAND_MAX));
161 g = (
rand() /
static_cast<double>(RAND_MAX));
162 b = (
rand() /
static_cast<double>(RAND_MAX));
166 if ( (
r-1.0)*(
r-1.0)+
g*
g+
b*
b <
r2*0.5 )
170 else if (
r*
r+
g*
g+
b*
b < r2*2.0 )
180 " not be selected such as to satisfy all separation criteria");
◆ sep()
SoSeparator* VP1VertexCollection::Imp::VertexHandle::sep |
( |
| ) |
const |
|
inline |
◆ type()
◆ updateShapes()
◆ vertex()
◆ m_attached
bool VP1VertexCollection::Imp::VertexHandle::m_attached |
|
private |
◆ m_collHandle
◆ m_randommaterial
SoMaterial* VP1VertexCollection::Imp::VertexHandle::m_randommaterial |
|
private |
◆ m_sep
SoSeparator* VP1VertexCollection::Imp::VertexHandle::m_sep |
|
private |
◆ m_vertex
The documentation for this class was generated from the following file: