![]() |
VR-Forces Developer's Guide
|
Model for security: cover/guard/screen See: https://www.jcs.mil/Portals/36/Documents/Doctrine/Other_Pubs/ms_2525d.pdf pages 652-653 If there are 3 control points:
------------------ pt1 -----------------
\ /
pt2 <----- ------ > pt3
If there are 4 control points:
------------------ pt2 pt3 -----------------
\ /
pt1 <----- ------ > pt4 
Classes | |
| struct | Arrow |
Public Types | |
| enum | SecurityType { SecurityType::COVER, SecurityType::GUARD, SecurityType::SCREEN } |
Public Member Functions | |
| DtOverlaySecurityModel (DtDe &de, DtUniqueID id) | |
| virtual | ~DtOverlaySecurityModel () |
| virtual void | setOrientation (const DtTaitBryan &orientation) |
| virtual void | setColor (float r, float g, float b, float a) |
| virtual bool | getColor (float &r, float &g, float &b, float &a) const |
Model setters/getters (abstract) | |
| virtual void | setOrigin (const DtVector &position) |
| virtual DtVector | origin () const |
| virtual void | setScale (float scale) |
| virtual float | scale () const |
| virtual void | setVisible (bool isVisible) |
| virtual bool | isVisible () const |
| virtual void | setStipplePattern (unsigned int stipplePattern) |
| virtual unsigned int | stipplePattern () const |
| virtual void | setLineWidth (float) |
| virtual float | lineWidth () const |
| virtual void | setEventsEnabled (bool enabled) |
| virtual bool | eventsEnabled () const |
| virtual void | setGroup (int groupNum) |
| virtual int | group () const |
| virtual void | setSecurityType (DtOverlaySecurityModel::SecurityType type) |
| virtual DtOverlaySecurityModel::SecurityType | securityType () const |
| virtual void | setFontFile (std::string fontFile) |
| virtual std::string | fontFile () const |
| virtual void | setFontPointSize (float pointSize) |
| virtual float | fontPointSize () const |
| virtual void | setFontColor (float r, float g, float b, float a) |
| virtual bool | getFontColor (float &r, float &g, float &b, float &a) const |
| virtual void | setPosition (int vtx, const DtVector &position) override |
| virtual void | setOrientation (int vtx, const DtTaitBryan &orientation) override |
| virtual void | setModelDefinition (const std::string &str) override |
Public Member Functions inherited from makVrv::DtModel | |
| DtModel (DtDe &de, DtUniqueID id) | |
| virtual | ~DtModel () |
| DtModelInstance * | createModelInstance (const std::string &modelDefName, bool realize=true) |
| virtual const std::string & | modelDefinitionName () |
| virtual void | saveModelToFile (const std::string &filename) |
| virtual const std::string & | className () const |
| virtual DtUniqueID | uniqueId () const |
| unsigned int | transformSize () const |
| virtual const DtVector & | position (int vtx=0) const |
| virtual void | removePosition (int vtx) |
| virtual void | setPositionOffset (const DtVector &positionOffset) |
| virtual const DtVector & | positionOffset () const |
| virtual void | setPositionAndOrientation (int vtx, const DtVector &positionOffset, const DtTaitBryan &orientation) |
| virtual const DtTaitBryan & | orientation (int vtx=0) const |
| virtual void | setOrientationOffset (const DtTaitBryan &orientationOffset) |
| virtual const DtTaitBryan & | orientationOffset () const |
| virtual void | enableColorBlending (bool b) |
| virtual void | setBlendColor (float r, float g, float b, float a) |
| virtual void | getBlendColor (float &r, float &g, float &b, float &a) |
| virtual bool | colorBlendingEnabled () const |
| virtual void | enableLighting (bool l) |
| virtual DtModelSetId | modelSet () const |
| const DtVector & | boundingBoxExtents () const |
| void | getBoundingBoxExtents (double &x, double &y, double &z) const |
| const DtVector & | boundingBoxCenter () const |
| virtual void | getBoundingBoxCenter (double &x, double &y, double &z) const |
| virtual void | getBoundingBoxComponents (DtVector &minimum, DtVector &maximum) |
| void | setContributesToBound (bool trueOrFalse) |
| bool | contributesToBound () const |
| DtDe & | de () |
| virtual void | setModelInstance (DtModelInstance *modelInstance) |
| virtual void | promoteBackgroundModelInstance (const DtModelDefinition &defintion) |
| virtual bool | visible () const |
| DtUniqueID | sceneObjectId () const |
| virtual void | addedToSceneObjectAsProp (const DtUniqueID &sceneObj) |
| virtual void | addedToSceneObject (const DtUniqueID &sceneObj, DtModelSetId modelSet, int visualizerType) |
| virtual void | setElementId (DtElementID id) |
| virtual void | removedFromSceneObject () |
| virtual void | setSolid (bool isSolid) |
| virtual bool | isProp () |
| virtual void | updateMinLastFrameDistance (float distance) |
| virtual void | resetLastFrameDistance () |
| virtual float | minLastFrameDistance () const |
| virtual DtModelInstance * | modelInstance () |
| virtual const DtModelInstance * | modelInstance () const |
| int | visualizerType () const |
| virtual bool | supportsMultithreadedLoad () |
| virtual void | backgroundLoad () |
| virtual void | foregroundLoad () |
| virtual bool | isActivelyBackgroundLoading () |
| virtual DtLoaderHandle * | getLoadQueueHandle () |
Protected Member Functions | |
| virtual void | needsUpdate () |
| virtual void | update () |
| virtual void | createSecurityModelIfNecessary () |
| virtual void | clearGeometry () |
| virtual void | set3DPositionAux (double x, double y, double z, float tempPackedCoords[4]) |
| virtual void | updateColors () |
| virtual void | updateLineColor (DtSegmentedLineInterface *seg, float r, float g, float b, float a) |
| virtual void | updateLineWidth (DtSegmentedLineInterface *seg, float width) |
| virtual void | setEventsEnabledLine (DtSegmentedLineInterface *seg, bool b, unsigned long long userData) |
| virtual void | updateLineStipple (DtSegmentedLineInterface *seg, unsigned int stipple) |
| virtual void | updateArrow (Arrow *arrow, const DtVector &start, const DtVector &end, bool left, DtTextProxyInterface *label) |
| virtual DtDcm | calcOrientationDcm (const DtVector &startV, double angleMidPoint1) |
| virtual void | set3DPositionAuxDcm (DtDcm dcmOri, DtVector posOffset, double x, double y, double z, float packedCoords[4]) |
| virtual void | slot_coordinateSystemChanged () |
| virtual void | updateVertices () |
| virtual void | setDimensions (float x, float y) |
| virtual bool | getDimensions (float &x, float &y) const |
| virtual void | forEachLine (const std::function< void(DtSegmentedLineInterface *)> &func) |
| std::string | securityTypeString (void) const |
| virtual void | addToScene (const DtUniqueID &sceneObjectId, DtModelSetId modelSet, int visualizerType) override |
| virtual void | removeFromScene () override |
| virtual void | setIsSupportModel (bool isSupport) override |
Protected Member Functions inherited from makVrv::DtModel | |
| virtual void | addToSceneAsProp (const DtUniqueID &sceneObjectId) |
| virtual void | initializeModelInstance () |
| void | slot_modelInstanceChanged (DtModelInstance *instance) |
| virtual void | waitAndClearLoadHandle () |
| virtual void | removedFromLoadQueue () |
| virtual void | setDoneBackgroundLoading () |
| virtual void | setActivelyBackgroundLoading () |
Private Member Functions | |
| DtOverlaySecurityModel ()=delete | |
| DtOverlaySecurityModel (const DtOverlaySecurityModel &)=delete | |
| DtOverlaySecurityModel & | operator= (const DtOverlaySecurityModel &)=delete |
Additional Inherited Members | |
Public Attributes inherited from makVrv::DtModel | |
| boost::signalslib::signal < void(DtModel *)> | signal_modelToBeDestroyed |
| boost::signalslib::signal < void(DtModel *)> | signal_modelChanged |
| boost::signalslib::signal < bool(DtModel *, bool), SlotReturnOR > | signal_visibilityChangeRequested |
| boost::signalslib::signal < void(DtModelInstance *, DtModel *)> | signal_modelInstanceCreated |
| boost::signalslib::signal < void(DtModelInstance *, DtModel *)> | signal_modelInstanceToBeDestroyed |
Protected Types inherited from makVrv::DtModel | |
| typedef std::vector < ObjectTransform > | TransformList |
Static Protected Attributes inherited from makVrv::DtModel | |
| static bool | theInittedState |
|
strong |
| makVrv::DtOverlaySecurityModel::DtOverlaySecurityModel | ( | DtDe & | de, |
| DtUniqueID | id | ||
| ) |
CTOR.
|
virtual |
DTOR.
|
privatedelete |
Default Constructor not implemented.
|
privatedelete |
Copy Constructor not implemented – Copy not allowed.
|
virtual |
Set/Get the global position of the security model.
|
virtual |
Set/Get the global position of the security model.
|
virtual |
Set the global orientation of the security model.
|
virtual |
Set/Get the numeric factor the security model is scaled by.
|
virtual |
Set/Get the numeric factor the security model is scaled by.
|
virtual |
Set/Get whether the security model is visible.
Reimplemented from makVrv::DtModel.
|
virtual |
Set/Get whether the security model is visible.
|
virtual |
Set/Get the stipple pattern for the security model.
Set/Get the stipple pattern for the security model.
|
virtual |
Set/Get the line width of the security model.
|
virtual |
Set/Get the line width of the security model.
|
virtual |
Sets the line color of the security model.
Reimplemented from makVrv::DtModel.
|
virtual |
|
virtual |
Set/Get whether to handle mouse events or not.
|
virtual |
Set/Get whether to handle mouse events or not.
|
virtual |
Sets the group this overlay will be drawn in. The higher the group number, the "closer" to the eyepoint this overlay will be drawn. Use this function to stack overlay objects in the particular order you want them displayed.
|
virtual |
Sets the group this overlay will be drawn in. The higher the group number, the "closer" to the eyepoint this overlay will be drawn. Use this function to stack overlay objects in the particular order you want them displayed.
|
virtual |
Whether guard/screen/cover.
|
virtual |
Whether guard/screen/cover.
|
virtual |
Set/Get the font file to use for the spider web.
|
virtual |
Set/Get the font file to use for the spider web.
|
virtual |
Set/Get the font point size for the spider web.
|
virtual |
Set/Get the font point size for the spider web.
|
virtual |
Set/Get the font color for the spider web.
|
virtual |
Set/Get the font color for the spider web.
|
overridevirtual |
Set the position of a vertex in the security model.
Reimplemented from makVrv::DtModel.
|
overridevirtual |
Set the orientation of the security model This function only does something if vtx equals 0.
Reimplemented from makVrv::DtModel.
|
overridevirtual |
Sets the model definition on the model instance.
Reimplemented from makVrv::DtModel.
|
overrideprotectedvirtual |
Attaches the model to the scene.
Implements makVrv::DtModel.
|
overrideprotectedvirtual |
Detaches the model from the scene.
Implements makVrv::DtModel.
|
overrideprotectedvirtual |
Set whether the model is part of the support group (whether or not other scene objects can ground clamp to this model)
Implements makVrv::DtModel.
|
protectedvirtual |
Sets flag so the object is updated in the next update pass.
|
protectedvirtual |
Called on tick.
|
protectedvirtual |
Create according to current state.
|
protectedvirtual |
Delete the DtSegmentedLines.
|
protectedvirtual |
Utility function for transforming a vertex and setting it on the model.
|
protectedvirtual |
Update the vertex colors.
|
protectedvirtual |
Update the vertex and segment colors for a line.
|
protectedvirtual |
Update the width for a line.
|
protectedvirtual |
Set whether events are enabled on a line segment.
|
protectedvirtual |
Update the stipple pattern for the lines.
|
protectedvirtual |
Construct the base line points.
|
protectedvirtual |
Get the DCM rotation from a TaitBryan rotation.
|
protectedvirtual |
Get the packed coordinates for an input position rotated by a dcm orientation and offset by a vec3d position.
|
protectedvirtual |
Slot for when the coordinate system changes.
|
protectedvirtual |
Update the vertex locations.
|
protectedvirtual |
get/set dimensions
|
protectedvirtual |
|
protectedvirtual |
do something on each arrow
|
protected |
string
|
privatedelete |
Assignment Operator not implemented – Copy not allowed.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |