![]() |
VR-Forces 4.6 Class Documentation
|
Box vertex manipulation class. More...

Public Member Functions | |
| DtVrfBoxVertexManipulationHandler (makVrv::DtDe &de) | |
| virtual | ~DtVrfBoxVertexManipulationHandler () |
Public Member Functions inherited from makVrf::DtVrfVertexManipulationHandler< DtVrfBoxManipulationHandler > | |
| DtVrfVertexManipulationHandler (makVrv::DtDe &de) | |
| virtual | ~DtVrfVertexManipulationHandler () |
| virtual void | editSelectedObjects (const makVrv::DtUniqueID &editId, makVrv::DtChannel &initiatingChannel, double waitTimeAfterComplete=0., const makVrv::DtSelectionManager::IdSet &editing=makVrv::DtSelectionManager::IdSet()) |
| Starts the process of object creation. | |
| virtual HandlerType | type () const |
| The type of handler. Used to see if two handler are equivalent. | |
Public Member Functions inherited from makVrf::DtVrfBoxManipulationHandler | |
| DtVrfBoxManipulationHandler (makVrv::DtDe &) | |
| virtual | ~DtVrfBoxManipulationHandler () |
| virtual double | length () const |
| Returns length of box (in meters) | |
| virtual void | setLength (double) |
| Sets length of box (in meters) | |
| virtual double | width () const |
| Returns width of box (in meters) | |
| virtual void | setWidth (double) |
| Sets width of box (in meters) | |
| virtual void | setDimensions (double length, double width, DtVrfObjectFacadeInterface *=0) |
| Sets dimensions of box (in meters) | |
| virtual std::vector< DtVector > | createBox (const DtVector &origin, double length, double width, double orientation) |
| virtual void | setLocation (const DtVector &location, double altAboveGround) |
| virtual double | maximumWidth () const |
| virtual double | maximumLength () const |
| Returns the maximum length a linear object can have. -1 if no max. | |
| virtual void | setMouseClickChangesOrigin (bool) |
| Set to true if any mouse click will only change the origin, regardless of which vertex is selected. | |
| virtual bool | mouseClickChangesOrigin () const |
| Returns true if myMouseClickChangesOrigin is true or the object is not attached to the mouse. | |
Public Member Functions inherited from makVrf::DtVrfShapeManipulationHandler | |
| DtVrfShapeManipulationHandler (makVrv::DtDe &) | |
| virtual | ~DtVrfShapeManipulationHandler () |
| virtual void | setPoints (const std::vector< DtVector > &pts) |
| virtual void | setPoints (const std::vector< DtGeodeticCoord > &pts) |
| const std::vector< DtVector > & | points () const |
| virtual bool | canEmbark () const |
| Returns true as to whether or not this item can even be allowed to embark in general. | |
| virtual bool | createVrfObject (DtVrfObjectFacadeInterface *) |
| Creates the scene object with the current handler settings for location, orientation, name, type, etc...A call to createObject must be made before using this function. | |
| virtual void | addControlPoint (const DtVector &location, int index=-1) |
| virtual void | removeControlPoint (int index) |
| virtual void | setAltitudeAboveSeaLevel (int, double) |
| Set altitude above sea level for the particular point. | |
| virtual double | altitudeAboveSeaLevel (int) const |
| virtual void | setAltitudeAboveTerrain (int, double) |
| Set altitude above terrain for the particular point. | |
| virtual double | altitudeAboveTerrain (int) const |
| virtual bool | canChangeDimensions () const |
| Returns true if there is no fixed width and no fixed height. | |
| virtual bool | shapeAtMinimum () const |
| Returns true if the shape has the minimum number of points to create. | |
| virtual bool | canRemovePoint () const |
| virtual bool | shapeAtMinimum (DtEnvironmentStateView *) |
| virtual bool | canDeleteAPoint (DtEnvironmentStateView *) |
| Returns true if a point can be deleted from this object. | |
| virtual bool | shapeAtMaximum () const |
| Returns true if the shape has the minimum number of points to create. | |
| virtual bool | shapeAtMaximum (DtEnvironmentStateView *) |
| virtual int | numVertices () const |
| Returns the number of vertices in the principal object. | |
| virtual void | setEditingPoint (int) |
| virtual int | editingPoint () const |
| virtual DtGeodeticCoord | geodeticPosition (int) const |
| virtual DtVector | geocentricPosition (int) const |
| virtual DtVector | localLocation (int index) const |
| location + altitude | |
| virtual std::vector < DtGeodeticCoord > | geodeticPositions () const |
| virtual std::vector< DtVector > | geocentricPositions () const |
| virtual void | removePoint (int) |
| virtual void | setShapeVerticesDisabled (bool) |
| Disable the showing of vertices on a shape. must be called before the facade is created. | |
| virtual bool | shapeVerticesDisabled () const |
| virtual double | altitudeForAltitudeType (int) const |
| Return the altitude given the current altitude type set. Goes to facade for information. | |
| virtual bool | freehand () const |
| Returns true if in freehand mode. | |
| virtual bool | canChangeArrowStyle () const |
| Returns true if the arrow style can be changed. | |
| virtual bool | canChangeArrowSize () const |
| virtual bool | canFill () const |
| virtual bool | canChangePenStyle () const |
| virtual bool | canChangeShapeOnly () const |
| Returns true if only the shape can be changed and none of the other object parameters. | |
| virtual void | setPointSamplingRate (int) |
| Sets the sampling rate for points. | |
| virtual int | pointSamplingRate () const |
| virtual void | setLineWidth (int) |
| Sets the line width of the line or outside of area. | |
| virtual int | lineWidth () const |
| virtual void | setPenStyle (int) |
| Sets the pen style of the line or the style of the area border. | |
| virtual int | penStyle () const |
| virtual void | setFillStyle (int) |
| Sets the fill style of the area. | |
| virtual int | fillStyle () const |
| virtual bool | fixedWidthSizing () const |
| Returns whether or not line is in fixed width sizing mode. | |
| virtual void | setForce (int) |
| Sets the force of the object. | |
| virtual void | setColor (int) |
| virtual int | color () const |
| virtual void | setExtendedLabels (const std::map< int, DtString > &) |
| virtual void | setLabel (const std::string &) |
| Sets label of item. Default is no-op. | |
| virtual std::string | label () const |
| virtual void | setFormattingData (const std::string &) |
| virtual std::string | formattingData () const |
| virtual int | arrowStyle () const |
| Returns information about the current arrow settings from the visualizer. | |
| virtual int | arrowHeadPlacement () const |
| virtual int | arrowSize () const |
| virtual bool | isArea () const |
| Current creating type is area (box, circle, area, ellipse) | |
| virtual bool | isRoute () const |
| Current creating type is route. | |
| virtual double | orientation () const |
| Returns orientation of object. | |
| virtual void | setOrientation (double) |
| Orients all the points of the object around the geometric center of the object by the given orientation. | |
| virtual double | initialArrowSize (bool fixedWidthSizing, double initialSize) const |
| For a newly created object returns initial arrow size. | |
| virtual void | setAllowHeadingChanges (bool) |
| Sets whether or not heading changes are allowed via the mouse/keyboard. Default is false. | |
| virtual void | cancel () |
| Cancels any current work. | |
| virtual DtVector | centerOfMass () const |
| Returns center of mass of all objects created (in geocentric) | |
| virtual void | updateOffsetsBasedOnMousePosition (const DtVector ¢erOfMass, const DtGeodeticCoord &, bool useImagePoints=false) |
| Reset objects based on new center. | |
| virtual void | setFloor (double) |
| Valid only for areal objects that are volumetric, get/set floor/ceiling of area. | |
| virtual double | floor () const |
| virtual void | setCeiling (double) |
| virtual double | ceiling () const |
Public Member Functions inherited from makVrf::DtVrfObjectManipulationHandlerBaseClass | |
| DtVrfObjectManipulationHandlerBaseClass (makVrv::DtDe &) | |
| virtual | ~DtVrfObjectManipulationHandlerBaseClass () |
| virtual bool | createObject (const DtEntityType &entType, int force, DtCreationSignalType creationSignal=DtNoCreationSignal, const std::string &keywords="") |
| Starts the process of object creation. | |
| virtual bool | createObject (const DtString &key, const DtString &associatedData, DtCreationSignalType creationSignal=DtNoCreationSignal, const std::string &keywords="") |
| Starts the process of terrain prop creation. | |
| virtual bool | canSetActivationTime () const |
| Returns true if activation time can be set. | |
| int | force () const |
| virtual void | setEventProcessingEnabled (bool value) |
| Sets whether or not event processing is enabled. If not enable mouse events will not be handled. | |
| virtual bool | embarkationAllowed () const |
| Returns whether or not embarkation by this object is allowed. | |
| virtual void | setEmbarkationAllowed (bool) |
| virtual void | setCanEmbark (bool) |
| Override setting of whether or not can embark by data. | |
| virtual void | setDoNotClamp (bool) |
| Whether or not to clamp to any kind of polygon or just take the mouse position. | |
| bool | doNotClamp () const |
| virtual bool | needsEmbarkOnCheck () const |
| Return true if this needs to check whether or not this object can embark on another object. Default is false. | |
| virtual void | setIgnoreNextLeftButtonRelease (bool b) |
| Set to ignore the next left button release. | |
| virtual void | setEditStartedByDoubleClick (bool) |
| virtual makVrv::DtIntersector::IntersectProperties | intersectorPickMask () const |
| virtual DtUUID | uuid () const |
| Returns UUID of principal object image. | |
| virtual void | setInterfaceContentMessage (const std::string &name, const DtSimInterfaceContent &) |
| Sets an interface content message to be sent during create. | |
| virtual void | removeInterfaceContentMessage (const std::string &) |
| const ContentMessages & | contentMessages () const |
| virtual std::list < DtSimInterfaceContent * > | contentMessagesToList () const |
| virtual void | sendContentMessages () |
| virtual VrfObjectEditFacadeList | objectFacades () const |
| Returns all facades in this handler. | |
| virtual void | setAllowCreationOnMouseClick (bool flag) |
| virtual bool | allowCreationOnMouseClick () const |
| virtual void | setEventProcessor (DtVrfObjectManipulationEventProcessor *) |
| Call before editing or creating to set the event processor. | |
| virtual DtVector | clampToGround (const DtVector &) const |
| virtual DtGeodeticCoord | clampToGround (const DtGeodeticCoord &) const |
| virtual void | setAttachObjectToMouse (bool) |
| virtual bool | attachObjectToMouse () const |
| virtual void | setHeading (double value) |
| virtual double | heading () const |
| virtual void | stop () |
| Stop an ongoing creation process. | |
| virtual void | deferredStop () |
| Stops on a post tick callback. | |
| virtual int | objectCount () const |
| Returns the number of objects being edited. | |
| virtual bool | createVrfObject () |
| virtual bool | modifyVrfObjects () |
| virtual DtVrfObjectFacadeInterface * | createAndAddLocalRepresentation (DtVrlinkSimulatedBaseStateView *editStateView=0) |
| Calls createLocalRepresentation and adds the resultant facade into the myObjectFacades member. | |
| virtual DtVrfObjectFacadeInterface * | createAndAddLocalRepresentation (DtVrlinkSimulatedBaseStateView *editStateView, makVrv::DtUniqueID sceneObjectId, DtVrlinkSimulatedBaseStateView *principalStateView) |
| virtual void | setOverlay (const std::string &name) |
| virtual const std::string & | overlay () const |
| virtual std::string | defaultOverlayForCreatingObject () const |
| virtual std::string | getNextCreatingName (bool includeCurrent=false) |
| virtual void | setAltitudeAboveGL (double alt, bool setInProcessor=true) |
| virtual void | setAltitudeAboveSL (double alt, bool setInProcessor=true) |
| virtual void | setAltitudeClampType (DtAltitudeClampType type) |
| void | setCreating (bool b) |
| bool | creating () const |
| virtual DtVrfObjectFacadeInterface * | principalObjectImage () const |
| virtual makVrv::DtUniqueID | principalObjectID () const |
| virtual void | setUserData (const std::string &userData) |
| virtual const std::string & | userData () const |
| virtual const std::map< int, DtString > & | extendedLabels () const |
| virtual void | setExtendedDataMap (const std::map< std::string, std::string > &extendedData) |
| virtual void | setExtendedDataMap (const std::map< DtString, DtString > &extendedData) |
| virtual const std::map < std::string, std::string > & | extendedDataMap () const |
| virtual void | setExtendedData (const std::string &key, const std::string &value) |
| virtual void | removeExtendedData (const std::string &key) |
| virtual std::string | extendedData (const std::string &key) const |
| virtual void | slot_onComplete () |
| virtual void | slot_onAltitudeIsDragging (bool) |
| virtual void | hideObject (const makVrv::DtUniqueID &id, bool hide) |
| virtual void | setPublishObject (bool) |
| Set whether or not to publish object. Default is true. | |
| virtual bool | publishObject () const |
| virtual void | setObjectName (const std::string &name) |
| virtual void | setUUIDForCreation (const DtUUID &) |
| In creation use this UUID to create. | |
| virtual const DtUUID & | uuidForCreation () const |
| virtual bool | isUniqueName () const |
| Returns true if the specified name is unique as set. | |
| virtual double | groundHeight (const DtVector &localPosition, DtVector *localGround=0, const std::vector< makVrv::DtUniqueID > &ignore=std::vector< makVrv::DtUniqueID >()) const |
| find the height of the ground (ENU coordinate system) at localPosition (DB coordinates). | |
| virtual void | setAltitudeAllowed (bool) |
| bool | altitudeAllowed () const |
| virtual const std::string & | objectName () const |
| virtual bool | anchorMouseToOrigin () const |
| If true (default is false) will anchor the position of the mouse to the origin of the object when editing. | |
| virtual void | setAnchorPosition (const DtGeodeticCoord &) |
| Sets the anchor position. | |
| virtual DtVector | localLocation () |
| location + altitude | |
| virtual DtVector | convertGeocentricToGround (const DtVector &geoc, double &altitude) const |
| virtual void | setShowPropertiesDialogBeforeCreate (bool) |
| virtual bool | showPropertiesDialogBeforeCreate () const |
| virtual bool | keywordsContain (const std::string &) const |
| Return true if the list of keywords contains the specified one. | |
| virtual std::string | keyword (const std::string &) const |
| virtual std::string | value (const std::string &) const |
| virtual void | addKeyword (const std::string &) |
| virtual void | removeKeyword (const std::string &) |
| virtual bool | waitingToStop () const |
| virtual void | setEditingType (DtEditingType) |
| DtEditingType | editingType () const |
| virtual void | setEmbarkationInformation (makVrv::DtUniqueID, bool) |
| Sets the embarkation information to use on creation/modification for attaching/detaching environmentals or embarking/disembarking entities. | |
| virtual makVrv::DtUniqueID | embarkedOn () const |
| virtual std::vector < makVrv::DtElementID > | ignoreList () const |
| Returns the list of IDs current being used to prevent usage in intersections. | |
| virtual void | setOverrideIdsToIgnore (const std::vector< makVrv::DtUniqueID > &overrideIgnore) |
| Set this list explicity to use to ignore rather than those calculated by this object facade. | |
| virtual const std::vector < makVrv::DtElementID > & | unifiedIgnoreList () const |
| Unifies the ignoreList() with all tactical graphics. | |
| virtual void | setFacadesVisible (bool) |
| Sets whether or not facades are visible. | |
| virtual bool | noStyle () const |
| Return true if the item should not show the style button. | |
| virtual void | setHeadingOffset (double d) |
| Sets the heading offset from principal – changing the heading without changing the originakl heading. | |
| virtual void | disconnectPlacement () |
| Disconnects signal for placing when editing. | |
| virtual void | setGroundClampOnPlacement (bool) |
| If altitude setting is not allowed, whether or not it should be clamp on placement. | |
| virtual bool | groundClampOnPlacement () const |
| virtual void | notifyOnFinalFacade (DtVrfObjectManipulationHandlerBaseClass *) |
| When the final facade is removed because it is deleted notify this handler. If the handler says it is ok to cancel editing then continue on. | |
| virtual void | removeNotifyOnFinalFacade (DtVrfObjectManipulationHandlerBaseClass *) |
| virtual void | connectPlacement () |
| Connects signal for placing when editing. | |
| virtual DtVector | sumOfAllLocations () const |
| Returns the sum of all the locations of all the object items present in this handler. | |
| virtual void | setSignalOnMultiSelectionComplete (bool) |
| Set signal on multi selection complete. | |
| virtual void | setKeywords (const std::string &) |
| Sets the keywords for this handler. | |
| virtual void | setSelectionCount (int) |
| Sets the count of items "selected". | |
| virtual void | parseKeywords (const std::string &) |
| Setup keywords for this handler. | |
| virtual bool | warpMouseToOrigin () const |
| virtual void | setWarpMouseToOrigin (bool) |
Additional Inherited Members | |
Public Types inherited from makVrf::DtVrfObjectManipulationHandlerBaseClass | |
| typedef std::vector < DtVrfObjectFacadeInterface * > | VrfObjectEditFacadeList |
| typedef std::map< std::string, DtSimInterfaceContent * > | ContentMessages |
Public Attributes inherited from makVrf::DtVrfShapeManipulationHandler | |
| boost::signal< void(const DtVector &, int)> | signal_pointLocationChanged |
| boost::signal< void()> | signal_pointSamplingRateChanged |
| boost::signal< void(double)> | signal_floorChanged |
| boost::signal< void(double)> | signal_ceilingChanged |
| boost::signal< void(const std::vector< DtVector > &)> | signal_locationsChanged |
Protected Types inherited from makVrf::DtVrfObjectManipulationHandlerBaseClass | |
| typedef std::map < DtVrlinkSimulatedBaseStateView *, makVrv::DtSignalConnectionManager * > | StateViewConnections |
Protected Member Functions inherited from makVrf::DtVrfVertexManipulationHandler< DtVrfBoxManipulationHandler > | |
| virtual void | editSelectedVertex (const makVrv::DtUniqueID &vertexId, const DtVector &vertexPos, makVrv::DtChannel &initiatingChannel) |
| virtual void | slot_onStateViewUpdated (DtVrlinkSimulatedBaseStateView *editStateView, makVrv::DtUniqueID sceneObjectId, double vx, double vy, double vz) |
| virtual void | slot_onLocationChanged (const DtVector &location, double altAboveGround) |
| virtual void | setLocation (const DtVector &loc) |
| virtual DtVector | vertexPosition (DtEnvironmentalFacadeCollection *iFace, int index) const |
| Return the vertex position at the specified index. | |
| virtual bool | anchorPositionIsMouse () const |
| Return false – when editing a vertex the default position is not the mouse. | |
| virtual void | initializeEventProcessor () |
| Disallow embarkation of individual vertices. | |
Protected Attributes inherited from makVrf::DtVrfBoxManipulationHandler | |
| bool | myMouseClickChangesOrigin |
Box vertex manipulation class.
|
inline |
|
inlinevirtual |