![]() |
VR-Forces Developer's Guide
|
This class will triangulate the given objects in the queue into the collision world supplied.
Classes | |
| struct | ProcessGeometry |
Public Types | |
| typedef std::vector < MAKVRinTerra::DtFeatureGeometry > | GeometryArray |
Public Member Functions | |
| DtThreadedTriangulator (const MAKVRinTerra::DtProj &, DtCollisionWorld *) | |
| virtual | ~DtThreadedTriangulator () |
| virtual void | addProcessGeometry (const GeometryArray &, const DtSurface &, bool triangulate) |
| virtual void | process () |
| virtual void | stop () |
| virtual void | start () |
| virtual bool | isStopped () const |
| virtual bool | isRunning () const |
| virtual void | cancel () |
| virtual bool | isCancelled () const |
| virtual bool | isProcessing () const |
| virtual void | join () |
Static Public Member Functions | |
| static void | threadMain (DtThreadedTriangulator *) |
Protected Types | |
| typedef std::vector < ProcessGeometry > | ProcessGeometries |
Protected Member Functions | |
| virtual MAKVRinTerra::DtFeatureGeometry::Point | preProcessGeometry (const MAKVRinTerra::DtFeatureGeometry::Point &geom, const DtSurface &surface) const |
| virtual void | tessellate (const GeometryArray &pointFeatures, const DtSurface &defaultSurface) |
| virtual void | triangulate (const GeometryArray &pointFeatures, const DtSurface &defaultSurface) |
Protected Attributes | |
| MAKVRinTerra::DtProj::Ptr | myProjection |
| DtCollisionWorld * | myCollisionWorld |
| tbb::tbb_thread * | myThread |
| tbb::spin_rw_mutex | myMutex |
| bool | myStop |
| bool | myRunning |
| bool | myCancelled |
| bool | myProcessing |
| ProcessGeometries | myProcessGeometries |
| typedef std::vector<MAKVRinTerra::DtFeatureGeometry> DtThreadedTriangulator::GeometryArray |
|
protected |
| DtThreadedTriangulator::DtThreadedTriangulator | ( | const MAKVRinTerra::DtProj & | , |
| DtCollisionWorld * | |||
| ) |
CTOR. If useShape is true uses convex hull shape rather than triangulating.
|
virtual |
DTOR.
|
virtual |
Adds a new geometry to process.
|
static |
Main thread entry point.
|
virtual |
Processing thread called from main thread.
|
virtual |
Stops this thread and disallows processing. Call start to allow additions again.
|
virtual |
Allows processing to be continued.
|
virtual |
Returns true if this should stop.
|
virtual |
Returns true if this running.
|
virtual |
Cancels any pending operation.
|
virtual |
Returns true if cancelled.
|
virtual |
Returns true if processing.
|
virtual |
Joins the thread.
|
protectedvirtual |
Effect geometry if need be before placing into scene graph.
|
protectedvirtual |
Tessellate geometry.
|
protectedvirtual |
Triangulate geometry.
|
protected |
|
protected |
|
protected |
|
mutableprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |