![]() |
VR-Forces 4.1.1 Class Documentation
|

Public Types | |
| typedef std::vector < DtVrfObjectFacadeInterface * > | VrfObjectEditFacadeList |
Public Member Functions | |
| 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 void | editSelectedObjects (const makVrv::DtUniqueID &editId, makVrv::DtChannel &initiatingChannel, double waitTimeAfterComplete=0.) |
| Starts the process of object editing. | |
| virtual void | setForce (int) |
| Sets the force of the object. | |
| int | force () const |
| virtual void | setAllowCreationOnMouseClick (bool flag) |
| virtual void | setLabel (const std::string &) |
| Sets label of item. Default is no-op. | |
| virtual std::string | label () const |
| virtual bool | allowCreationOnMouseClick () const |
| 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 | setLocation (const DtVector &loc) |
| virtual void | setLocation (const DtVector &loc, double altAboveGround) |
| virtual void | stop () |
| Stop an ongoing creation process. | |
| virtual void | deferredStop () |
| Stops on a post tick callback. | |
| virtual bool | createVrfObject ()=0 |
| virtual bool | modifyVrfObjects ()=0 |
| virtual DtVrfObjectFacadeInterface * | createLocalRepresentation (DtVrlinkSimulatedBaseStateView *editStateView=0)=0 |
| virtual DtVrfObjectFacadeInterface * | createLocalRepresentation (DtVrlinkSimulatedBaseStateView *editStateView, makVrv::DtUniqueID sceneObjectId, DtVrlinkSimulatedBaseStateView *principalStateView)=0 |
| virtual void | initializeEventProcessor () |
| virtual void | setOverlay (const std::string &name) |
| 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 void | slot_onComplete () |
| virtual void | slot_onPlace (makVrv::DtUniqueID, const DtVector &, double altAboveGround) |
| virtual void | slot_onEditComplete (makVrv::DtUniqueID, const DtVector &, double altAboveGround) |
| virtual void | slot_onLocationChanged (const DtVector &location, double altAboveGround) |
| 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 bool | isUniqueName () const |
| Returns true if the specified name is unique as set. | |
| virtual double | groundHeight (const DtVector &localPosition, DtVector *localGround=0) 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 void | setAnchorMouseToOrigin (bool) |
| If true (default is false) will anchor the position of the mouse to the origin of the object when editing. | |
| virtual bool | anchorMouseToOrigin () const |
| virtual void | setAnchorPositionIsMouse (bool) |
| If false (default is true) will have the anchor position be the principal object. By default it is the mouse position. | |
| virtual bool | anchorPositionIsMouse () const |
| 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 bool | waitingToStop () const |
| virtual void | cancel () |
| Cancels any current work. Default calls slot_onCancel. | |
| virtual bool | noStyle () const |
| Return true if the item should not show the style button. | |
Public Attributes | |
| boost::signal< void(bool)> | signal_showPropertiesDialog |
| There are some instances where a handler does not want to finish up when creating. | |
| boost::signal< void(bool)> | signal_attachObjectToMouse |
| Signal sent when attached object to mouse changes. | |
| boost::signal< void(DtVrfObjectFacadeInterface *, DtVrlinkSimulatedBaseStateView *editStateView)> | signal_preVisualization |
| Signal sent before any visualizers are created on the interface. | |
| boost::signal< void(DtVrfObjectFacadeInterface *, bool)> | signal_objectFacadeCreated |
| signal sent after the facade is created. | |
| boost::signal< void(const DtEntityType &, int)> | signal_started |
| Signaled when entity creation has started. | |
| boost::signal< void(const DtEntityType &, std::string, int, const std::vector < DtVector > &, double, bool, bool, std::string, bool)> | signal_createObject |
| signal sent when object wants to be created | |
| boost::signal< void(const DtString &, const DtString &)> | signal_createTerrainProp |
| signal sent when prop wants to be created | |
| boost::signal< void(DtVrfObjectManipulationHandlerBaseClass *)> | signal_stopped |
| Sent when entity creation has stopped. | |
| boost::signal< void(DtVrfObjectManipulationHandlerBaseClass *)> | signal_complete |
| Sent when entity creation has completed (right-click) | |
| boost::signal< void(const DtVector &)> | signal_locationChanged |
| signal sent when the mouse changes location during creation/editing | |
| boost::signal< void(double)> | signal_headingChanged |
| signal sent when the mouse changes the orientation of an object during creation/editing | |
| boost::signal< void(double)> | signal_altitudeChanged |
| signal sent when the mouse changes the altitude of an object during creation/editing | |
| boost::signal< void(const DtVector &)> | signal_placement |
| signal sent when the left mouse is pressed during creation/editing | |
| boost::signal< void(DtVrfObjectManipulationHandlerBaseClass *)> | signal_restoreSelectionState |
| Sent when the handler has been notified that its attribute changes (show) requests have been made, so selection state can be restored. | |
| boost::signal< void(const makVrv::DtUniqueID &)> | signal_principalStateViewUpdated |
| Sent when principal state view is updated for editing. | |
| boost::signal< void(DtVrfObjectFacadeInterface *)> | signal_objectFacadeAboutToBeRemoved |
| Sent when object facade interface is about to be removed. | |
Protected Member Functions | |
| virtual void | slot_simObjectEntryToBeRemoved (const makVrv::DtSimObjectEntry &) |
| Called when a sim object entry is removed. If we are editing this entry then cancel this process. | |
| virtual bool | typeIsValidForEditingByHandler (const makVrv::DtElementEntry::ElementType &, const DtEntityType &) const |
| Override to not allow a particular element type to be editable. By default all are. | |
| virtual void | slot_onAltitudeChanged (const DtVector &, double) |
| virtual void | slot_onHeadingChanged (double heading) |
| virtual void | slot_onCancel () |
| virtual std::string | stripNumbers (const std::string &base) const |
| virtual void | warpMouseToLocation (makVrv::DtChannel *channel, const DtVector &location) const |
| virtual void | initializeEdit () |
| Initializes editing of objects. | |
| virtual void | slot_onPrincipalStateViewUpdated (DtVrlinkSimulatedBaseStateView *principalStateView, const makVrv::DtUniqueID &principalSceneObjectId) |
| virtual void | slot_onStateViewUpdated (DtVrlinkSimulatedBaseStateView *editStateView, makVrv::DtUniqueID sceneObjectId, DtVrlinkSimulatedBaseStateView *principalStateView) |
| virtual bool | centerOn (const makVrv::DtUniqueID &id, DtVector *centerPos=0, const DtVector *centerHere=0, bool centerOnOnlyIfMousePositionIsOffWindow=true) const |
| If centerHere is non-null use that geocentric value as the center point. | |
| virtual void | setObjectImageAsAnchor (DtVrfObjectFacadeInterface *objectImage, const DtVector &geocLocation, bool resetOrigin=false) |
| virtual void | setObjectImageRelativeToPrincipal (DtVrfObjectFacadeInterface *objectImage, const DtVector &thisGeocLocation, const DtTaitBryan &thisGeocOrientation, const DtVector &prGeocLocation, const DtTaitBryan &prGeocOrientation) |
| virtual void | initializeInterfaceForEdit (DtVrfObjectFacadeInterface *, makVrv::DtUniqueID, const makVrv::DtVrlinkSimulatedBaseState &, const DtVector &principalLocation, const DtTaitBryan &principalOrientation) |
| virtual void | calculateAnchor (const DtVector &localAnchor) |
| virtual void | calculateAnchorBasedOnMousePosition (makVrv::DtChannel &channel) |
| virtual void | postCreateInitialize () |
| virtual void | parseKeywords (const std::string &) |
Protected Attributes | |
| bool | myCreating |
| bool | myAttachObjectToMouse |
| int | myForce |
| makVrv::DtDe & | myDe |
| bool | mySignalManipulation |
| bool | myAllowCreationOnClick |
| std::string | myObjectName |
| std::string | myOverlay |
| DtVrfObjectManipulationEventProcessor * | myEventProcessor |
| bool | myAltitudeIsDragging |
| bool | myAltitudeAllowed |
| makVrv::DtChannel * | myHiddenChannel |
| std::string | myUserData |
| std::string | myKey |
| std::string | myKeyData |
| DtCreationSignalType | mySignalCreation |
| VrfObjectEditFacadeList | myObjectImages |
| DtReferenceEllipsoid * | myReferenceForConversion |
| DtAltitudeClampType | myAltitudeClampType |
| bool | myOverlayChanged |
| bool | myShowPropertiesDialogBeforeCreate |
| DtGeodeticCoord | myAnchorPosition |
| bool | myAnchorMouseToOrigin |
| bool | myAnchorPositionIsMouse |
| DtTimedSection * | myDeferredStopTimer |
| double | myTotalTimeElapsed |
| double | myDeferStopFor |
| bool | myPublishObject |
| std::vector< std::string > | myKeywords |
| int | myCursorCount |
| typedef std::vector<DtVrfObjectFacadeInterface*> makVrf::DtVrfObjectManipulationHandlerBaseClass::VrfObjectEditFacadeList |
| makVrf::DtVrfObjectManipulationHandlerBaseClass::DtVrfObjectManipulationHandlerBaseClass | ( | makVrv::DtDe & | ) |
|
virtual |
|
virtual |
Starts the process of object creation.
Calls createObject with string represenation of key and force. Set signalCreation to true if you don't want to create the object immediately but just signal the creation. This will require the user to dismiss the create dialog. To signal multiple creations set signalCreation to false and multipleCreationSignal to true. Each click will then send a signal creation.
|
virtual |
Starts the process of terrain prop creation.
|
virtual |
Starts the process of object editing.
Wait time after complete is how long to "wait" until showing hidden objects. This is to account for a bit of time taken to process result from back-end and prevent possible "jump" of object on move.
Reimplemented in makVrf::DtVrfShapeManipulationHandler, makVrf::DtVrfVertexManipulationHandler< DtVrfBoxManipulationHandler >, makVrf::DtVrfVertexManipulationHandler< DtVrfShapeManipulationHandler >, makVrf::DtVrfVertexManipulationHandler< DtVrfCircleManipulationHandler >, and makVrf::DtVrfPropManipulationHandler.
|
virtual |
Sets the force of the object.
Reimplemented in makVrf::DtVrfShapeManipulationHandler, makVrf::DtVrfPointManipulationHandler, and makVrf::DtVrfEntityManipulationHandler.
| int makVrf::DtVrfObjectManipulationHandlerBaseClass::force | ( | ) | const |
|
virtual |
|
virtual |
Sets label of item. Default is no-op.
Reimplemented in makVrf::DtVrfShapeManipulationHandler, makVrf::DtVrfPointManipulationHandler, and makVrf::DtVrfEntityManipulationHandler.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Reimplemented in makVrf::DtVrfCircleManipulationHandler, and makVrf::DtVrfBoxManipulationHandler.
|
virtual |
|
virtual |
Reimplemented in makVrf::DtVrfCircleManipulationHandler.
|
virtual |
Reimplemented in makVrf::DtVrfCircleManipulationHandler.
|
virtual |
|
virtual |
|
virtual |
Stop an ongoing creation process.
Reimplemented in makVrf::DtVrfPropManipulationHandler.
|
virtual |
Stops on a post tick callback.
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
inline |
|
inline |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Reimplemented in makVrf::DtVrfShapeManipulationHandler.
|
virtual |
|
virtual |
Reimplemented in makVrf::DtVrfShapeManipulationHandler, and makVrf::DtVrfBoxManipulationHandler.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Set whether or not to publish object. Default is true.
|
virtual |
|
virtual |
|
virtual |
Returns true if the specified name is unique as set.
|
virtual |
find the height of the ground (ENU coordinate system) at localPosition (DB coordinates).
If you want the DB coordinate ground position back, supply a vector to put it into
|
virtual |
| bool makVrf::DtVrfObjectManipulationHandlerBaseClass::altitudeAllowed | ( | ) | const |
|
virtual |
|
virtual |
If true (default is false) will anchor the position of the mouse to the origin of the object when editing.
This will mean the mouse cursor will move
|
virtual |
|
virtual |
If false (default is true) will have the anchor position be the principal object. By default it is the mouse position.
|
virtual |
|
virtual |
location + altitude
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Return true if the list of keywords contains the specified one.
|
virtual |
|
virtual |
|
virtual |
Cancels any current work. Default calls slot_onCancel.
|
virtual |
Return true if the item should not show the style button.
|
protectedvirtual |
Called when a sim object entry is removed. If we are editing this entry then cancel this process.
|
protectedvirtual |
Override to not allow a particular element type to be editable. By default all are.
Reimplemented in makVrf::DtVrfPointManipulationHandler.
|
protectedvirtual |
Reimplemented in makVrf::DtVrfShapeManipulationHandler.
|
protectedvirtual |
Reimplemented in makVrf::DtVrfCircleManipulationHandler.
|
protectedvirtual |
Reimplemented in makVrf::DtVrfShapeManipulationHandler.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Initializes editing of objects.
Override to change default assumptions on allowing altitude and heading changes
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
If centerHere is non-null use that geocentric value as the center point.
If centerOnOnlyIfMousePositionIsOffWindow is true, only center on the object if the mouse position is not over the drawable area. If it is, do not center
|
protectedvirtual |
Reimplemented in makVrf::DtVrfPropManipulationHandler.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
| boost::signal<void (bool)> makVrf::DtVrfObjectManipulationHandlerBaseClass::signal_showPropertiesDialog |
There are some instances where a handler does not want to finish up when creating.
In that case, this signal will be set and the create properties dialog for the object will be shown so the user can take action before creating the item. By default this is not the case, and, will only be valid during object creation
| boost::signal<void (bool)> makVrf::DtVrfObjectManipulationHandlerBaseClass::signal_attachObjectToMouse |
Signal sent when attached object to mouse changes.
| boost::signal<void (DtVrfObjectFacadeInterface*, DtVrlinkSimulatedBaseStateView* editStateView)> makVrf::DtVrfObjectManipulationHandlerBaseClass::signal_preVisualization |
Signal sent before any visualizers are created on the interface.
| boost::signal<void (DtVrfObjectFacadeInterface*, bool)> makVrf::DtVrfObjectManipulationHandlerBaseClass::signal_objectFacadeCreated |
signal sent after the facade is created.
If the boolean is true, this was created for an edit mode
| boost::signal<void (const DtEntityType&, int)> makVrf::DtVrfObjectManipulationHandlerBaseClass::signal_started |
Signaled when entity creation has started.
| boost::signal<void ( const DtEntityType&, std::string, int, const std::vector<DtVector>&, double, bool, bool, std::string, bool )> makVrf::DtVrfObjectManipulationHandlerBaseClass::signal_createObject |
signal sent when object wants to be created
| boost::signal<void (const DtString&, const DtString&)> makVrf::DtVrfObjectManipulationHandlerBaseClass::signal_createTerrainProp |
signal sent when prop wants to be created
| boost::signal<void (DtVrfObjectManipulationHandlerBaseClass*)> makVrf::DtVrfObjectManipulationHandlerBaseClass::signal_stopped |
Sent when entity creation has stopped.
| boost::signal<void (DtVrfObjectManipulationHandlerBaseClass*)> makVrf::DtVrfObjectManipulationHandlerBaseClass::signal_complete |
Sent when entity creation has completed (right-click)
| boost::signal<void (const DtVector& )> makVrf::DtVrfObjectManipulationHandlerBaseClass::signal_locationChanged |
signal sent when the mouse changes location during creation/editing
| boost::signal<void (double)> makVrf::DtVrfObjectManipulationHandlerBaseClass::signal_headingChanged |
signal sent when the mouse changes the orientation of an object during creation/editing
| boost::signal<void (double)> makVrf::DtVrfObjectManipulationHandlerBaseClass::signal_altitudeChanged |
signal sent when the mouse changes the altitude of an object during creation/editing
| boost::signal<void (const DtVector&)> makVrf::DtVrfObjectManipulationHandlerBaseClass::signal_placement |
signal sent when the left mouse is pressed during creation/editing
| boost::signal<void (DtVrfObjectManipulationHandlerBaseClass*)> makVrf::DtVrfObjectManipulationHandlerBaseClass::signal_restoreSelectionState |
Sent when the handler has been notified that its attribute changes (show) requests have been made, so selection state can be restored.
| boost::signal<void (const makVrv::DtUniqueID&)> makVrf::DtVrfObjectManipulationHandlerBaseClass::signal_principalStateViewUpdated |
Sent when principal state view is updated for editing.
| boost::signal<void (DtVrfObjectFacadeInterface*)> makVrf::DtVrfObjectManipulationHandlerBaseClass::signal_objectFacadeAboutToBeRemoved |
Sent when object facade interface is about to be removed.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |