VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Attributes
makVrf::DtVrfPersistentTrackSwitchHandler Class Reference

Creation/edit of entity objects. More...

Inheritance diagram for makVrf::DtVrfPersistentTrackSwitchHandler:
Inheritance graph
[legend]

Public Member Functions

 DtVrfPersistentTrackSwitchHandler (makVrv::DtDe &)
 
virtual ~DtVrfPersistentTrackSwitchHandler ()
 
virtual HandlerType type () const
 The type of handler. Used to see if two handler are equivalent. More...
 
virtual bool clampAtClosestPolygonOnPlacement () const
 Return true to keep the placement at closest polygon level regardless of height above terrain. Default is false. More...
 
virtual bool canSetActivationTime () const
 Returns true if activation time can be set. More...
 
virtual bool needsEmbarkOnCheck () const
 Return true if this needs to check whether or not this object can embark on another object. Default is false. More...
 
virtual bool canEmbark () const
 Returns true as to whether or not this item can even be allowed to embark in general. More...
 
virtual bool createVrfObject (DtVrfObjectFacadeInterface *)
 Called to create an object at the current location, heading, and altitude stored in the internal variables. More...
 
virtual bool modifyVrfObject (DtVrfObjectFacadeInterface *)
 Called for each object to be modified. More...
 
virtual
DtVrfObjectFacadeInterface
createLocalRepresentation (DtVrlinkSimulatedBaseStateView *editStateView=0)
 returns true if successful, false otherwise More...
 
virtual void initializeEventProcessor ()
 
virtual bool canChangePositionOnly () const
 
virtual
DtVrfObjectFacadeInterface
createLocalRepresentation (DtVrlinkSimulatedBaseStateView *editStateView, makVrv::DtUniqueID sceneObjectId, DtVrlinkSimulatedBaseStateView *principalStateView)
 
virtual void setLocationToSwitch (const DtVector &)
 
const DtVectorlocationToSwitch () const
 
- 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 void addControlPoint (const DtVector &location, int index=-1)
 
virtual void removeControlPoint (int index)
 
virtual void setLocation (int index, const DtVector &location, bool resetOrigin=true)
 
virtual void setAltitudeAboveSeaLevel (int, double)
 Set altitude above sea level for the particular point. More...
 
virtual double altitudeAboveSeaLevel (int) const
 
virtual void initializeInterfaceForEdit (DtVrfObjectFacadeInterface *iFace, makVrv::DtUniqueID sceneObjectId, const makVrv::DtVrlinkSimulatedBaseState &editState, const DtVector &principalLocation, const DtTaitBryan &principalOrientation)
 
virtual void setAltitudeAboveTerrain (int, double)
 Set altitude above terrain for the particular point. More...
 
virtual double altitudeAboveTerrain (int) const
 
virtual bool canChangeDimensions () const
 Returns true if there is no fixed width and no fixed height. More...
 
virtual double maximumLength () const
 Returns the maximum length a linear object can have. -1 if no max. More...
 
virtual bool shapeAtMinimum () const
 Returns true if the shape has the minimum number of points to create. More...
 
virtual bool canRemovePoint () const
 
virtual bool shapeAtMinimum (DtEnvironmentStateView *)
 
virtual bool canDeleteAPoint (DtEnvironmentStateView *)
 Returns true if a point can be deleted from this object. More...
 
virtual bool shapeAtMaximum () const
 Returns true if the shape has the minimum number of points to create. More...
 
virtual bool shapeAtMaximum (DtEnvironmentStateView *)
 
virtual void getMinMaxVertices (const DtEntityType &creatingType, int &minVert, int &maxVert) const
 Returns the minimum/maximum vertices of the given type. More...
 
virtual int numVertices () const
 Returns the number of vertices in the principal object. More...
 
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 More...
 
virtual std::vector
< DtGeodeticCoord > 
geodeticPositions () const
 
virtual std::vector< DtVectorgeocentricPositions () 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. More...
 
virtual bool shapeVerticesDisabled () const
 
virtual double altitudeForAltitudeType (int) const
 Return the altitude given the current altitude type set. Goes to facade for information. More...
 
virtual bool freehand () const
 Returns true if in freehand mode. More...
 
virtual bool canChangeArrowStyle () const
 Returns true if the arrow style can be changed. More...
 
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. More...
 
virtual void setPointSamplingRate (int)
 Sets the sampling rate for points. More...
 
virtual int pointSamplingRate () const
 
virtual void setLineWidth (int)
 Sets the line width of the line or outside of area. More...
 
virtual int lineWidth () const
 
virtual void setPenStyle (int)
 Sets the pen style of the line or the style of the area border. More...
 
virtual int penStyle () const
 
virtual void setFillStyle (int)
 Sets the fill style of the area. More...
 
virtual int fillStyle () const
 
virtual bool fixedWidthSizing () const
 Returns whether or not line is in fixed width sizing mode. More...
 
virtual void setForce (int)
 Sets the force of the object. More...
 
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. More...
 
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. More...
 
virtual int arrowHeadPlacement () const
 
virtual int arrowSize () const
 
virtual bool isArea () const
 Current creating type is area (box, circle, area, ellipse) More...
 
virtual bool isRoute () const
 Current creating type is route. More...
 
virtual bool automaticallyChangeCeiling () const
 
virtual double orientation () const
 Returns orientation of object. More...
 
virtual void setOrientation (double)
 Orients all the points of the object around the geometric center of the object by the given orientation. More...
 
virtual double initialArrowSize (bool fixedWidthSizing, double initialSize) const
 For a newly created object returns initial arrow size. More...
 
virtual void setAllowHeadingChanges (bool)
 Sets whether or not heading changes are allowed via the mouse/keyboard. Default is false. More...
 
virtual void setLength (double)
 Set fixed length of line from 0 to 1 point. More...
 
virtual void cancel ()
 Cancels any current work. More...
 
virtual DtVector centerOfMass () const
 Returns center of mass of all objects created (in geocentric) More...
 
virtual void updateOffsetsBasedOnMousePosition (const DtVector &centerOfMass, const DtGeodeticCoord &, bool useImagePoints=false)
 Reset objects based on new center. More...
 
virtual void editSelectedObjects (const makVrv::DtUniqueID &principalID, makVrv::DtChannel &initiatingChannel, double waitTimeAfterComplete=0., const makVrv::DtSelectionManager::IdSet &editing=makVrv::DtSelectionManager::IdSet())
 Starts the process of object editing. More...
 
virtual bool isObjectValidForCreation ()
 Check if current object is valid for creation. More...
 
virtual void setFloor (double)
 Valid only for areal objects that are volumetric, get/set floor/ceiling of area. More...
 
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. More...
 
virtual bool createObject (const DtString &key, const DtString &associatedData, DtCreationSignalType creationSignal=DtNoCreationSignal, const std::string &keywords="")
 Starts the process of terrain prop creation. More...
 
virtual bool canShowForces () const
 Whether or not the force can be changed. More...
 
int force () const
 
virtual void monitorObjectRemoval (bool)
 Whether or not to monitor the removal of objects being edited. More...
 
virtual void setEventProcessingEnabled (bool value)
 Sets whether or not event processing is enabled. If not enable mouse events will not be handled. More...
 
virtual void clearEventProcessor ()
 Deletes the event processor. Once cleared you must set your own to get it back. More...
 
virtual bool embarkationAllowed () const
 Returns whether or not embarkation by this object is allowed. More...
 
virtual void setEmbarkationAllowed (bool)
 
virtual void setCanEmbark (bool)
 Override setting of whether or not can embark by data. More...
 
virtual void setDoNotClamp (bool)
 Whether or not to clamp to any kind of polygon or just take the mouse position. More...
 
bool doNotClamp () const
 
virtual void setIgnoreNextLeftButtonRelease (bool b)
 Set to ignore the next left button release. More...
 
virtual void setEditStartedByDoubleClick (bool)
 
virtual void setCreationEndedWithDoubleClick (bool creationEndedWithDoubleClick)
 Set the myCreationEndedWithDoubleClick flag (default is false) More...
 
virtual bool isCreationEndedWithDoubleClick () const
 Get the myCreationEndedWithDoubleClick flag. More...
 
virtual
makVrv::DtIntersector::IntersectProperties 
intersectorPickMask () const
 
virtual DtUUID uuid () const
 Returns UUID of principal object image. More...
 
virtual void setInterfaceContentMessage (const std::string &name, const DtSimInterfaceContent &)
 Sets an interface content message to be sent during create. More...
 
virtual void removeInterfaceContentMessage (const std::string &)
 
const ContentMessagescontentMessages () const
 
virtual std::list
< DtSimInterfaceContent * > 
contentMessagesToList () const
 
virtual void sendContentMessages ()
 
virtual VrfObjectEditFacadeList objectFacades () const
 Returns all facades in this handler. More...
 
virtual void setAllowCreationOnMouseClick (bool flag)
 
virtual bool allowCreationOnMouseClick () const
 
virtual void setEventProcessor (DtVrfObjectManipulationEventProcessor *)
 Call before editing or creating to set the event processor. More...
 
virtual DtVector clampToGround (const DtVector &, int clampFlag=-1) const
 
virtual DtGeodeticCoord clampToGround (const DtGeodeticCoord &, int clampFlag=-1) const
 
virtual void setAttachObjectToMouse (bool)
 
virtual bool attachObjectToMouse () const
 
virtual void setHeading (double value)
 
virtual double heading () const
 
virtual void setPitch (double value)
 
virtual double pitch () const
 
virtual void setLocation (const DtVector &loc)
 
virtual void setLocation (const DtVector &loc, double altAboveGround)
 
virtual void stop ()
 Stop an ongoing creation process. More...
 
virtual void deferredStop ()
 Stops on a post tick callback. More...
 
virtual int objectCount () const
 Returns the number of objects being edited. More...
 
virtual bool createVrfObject ()
 
virtual bool modifyVrfObjects ()
 
virtual
DtVrfObjectFacadeInterface
createAndAddLocalRepresentation (DtVrlinkSimulatedBaseStateView *editStateView=0)
 Calls createLocalRepresentation and adds the resultant facade into the myObjectFacades member. More...
 
virtual
DtVrfObjectFacadeInterface
createAndAddLocalRepresentation (DtVrlinkSimulatedBaseStateView *editStateView, makVrv::DtUniqueID sceneObjectId, DtVrlinkSimulatedBaseStateView *principalStateView)
 
virtual void setOverlay (const std::string &name)
 
virtual 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 setAltitudeAboveGLForAll (double alt, bool setInProcessor=true)
 Sets the altitude only in all the facades, not just the principle image. More...
 
virtual void setAltitudeAboveSL (double alt, bool setInProcessor=true)
 
virtual void setAltitudeAboveSLForAll (double alt, bool setInProcessor=true)
 Sets the altitude only in all the facades, not just the principle image. More...
 
virtual bool hasObjectFacade (makVrv::DtUniqueID) const
 Returns true if an object has the unique ID of the given id from the listener. More...
 
virtual void setAltitudeClampType (DtAltitudeClampType type)
 
DtAltitudeClampType altitudeClampType () const
 
virtual void setCreating (bool b)
 
bool creating () const
 
virtual
DtVrfObjectFacadeInterface
principalObjectImage () const
 
virtual makVrv::DtUniqueID principalObjectID () const
 
virtual std::set
< makVrv::DtUniqueID
elementIDs () 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. More...
 
virtual bool publishObject () const
 
virtual void setObjectName (const std::string &name)
 
virtual void setUUIDForCreation (const DtUUID &)
 In creation use this UUID to create. More...
 
virtual const DtUUIDuuidForCreation () const
 
virtual bool isUniqueName () const
 Returns true if the specified name is unique as set. More...
 
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). More...
 
virtual void setAltitudeAllowed (bool)
 
bool altitudeAllowed () const
 
bool pitchAllowed () const
 Only allowed if set as keyword in .entity file. More...
 
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. More...
 
virtual bool anchorPositionIsMouse () const
 If false (default is true) will have the anchor position be the principal object. By default it is the mouse position. More...
 
virtual void setAnchorPosition (const DtGeodeticCoord &)
 Sets the anchor position. More...
 
virtual DtVector localLocation ()
 location + altitude More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
virtual const std::vector
< makVrv::DtElementID > & 
unifiedIgnoreList () const
 Unifies the ignoreList() with all tactical graphics. More...
 
virtual void setFacadesVisible (bool)
 Sets whether or not facades are visible. More...
 
virtual bool noStyle () const
 Return true if the item should not show the style button. More...
 
virtual void slot_onHeadingChanged (double heading)
 
virtual void slot_onPitchChanged (double heading)
 
virtual void setHeadingOffset (double d)
 Sets the heading offset from principal – changing the heading without changing the originakl heading. More...
 
virtual void setPitchOffset (double d)
 Sets the pitch offset from principal – changing the heading without changing the originakl heading. More...
 
virtual void disconnectPlacement ()
 Disconnects signal for placing when editing. More...
 
virtual void setGroundClampOnPlacement (bool)
 If altitude setting is not allowed, whether or not it should be clamp on placement. More...
 
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. More...
 
virtual void removeNotifyOnFinalFacade (DtVrfObjectManipulationHandlerBaseClass *)
 
virtual void connectPlacement ()
 Connects signal for placing when editing. More...
 
virtual DtVector sumOfAllLocations () const
 Returns the sum of all the locations of all the object items present in this handler. More...
 
virtual void setSignalOnMultiSelectionComplete (bool)
 Set signal on multi selection complete. More...
 
virtual void setKeywords (const std::string &)
 Sets the keywords for this handler. More...
 
virtual void setSelectionCount (int)
 Sets the count of items "selected". More...
 
virtual void parseKeywords (const std::string &)
 Setup keywords for this handler. More...
 
virtual bool warpMouseToOrigin () const
 
virtual void setWarpMouseToOrigin (bool)
 

Protected Attributes

DtVector myLocationToSwitch
 
- Protected Attributes inherited from makVrf::DtVrfShapeManipulationHandler
int myMaxVertices
 
int myMinVertices
 
DtGeodeticCoord myLastPosition
 
bool myRecentered
 
DtVector myRecenteredPos
 
int myPointSamplingRate
 
bool myShapeVerticesDisabled
 
DtVector myLastMouseLocation
 
double myLastAltAboveGround
 
- Protected Attributes inherited from makVrf::DtVrfObjectManipulationHandlerBaseClass
bool myCreating
 
bool myAttachObjectToMouse
 
int myForce
 
makVrv::DtDemyDe
 
bool mySignalManipulation
 
bool myAllowCreationOnClick
 
std::string myObjectName
 
std::string myOverlay
 
DtVrfObjectManipulationEventProcessormyEventProcessor
 
bool myOwnsEventProcessor
 
bool myAltitudeIsDragging
 
bool myAltitudeAllowed
 
bool myClearedProcessor
 
makVrv::DtChannelmyHiddenChannel
 
std::string myUserData
 
std::map< std::string,
std::string > 
myExtendedData
 
std::map< int, DtStringmyExtendedLabels
 
std::string myKey
 
std::string myKeyData
 
DtCreationSignalType mySignalCreation
 
bool mySignalOnMultiSelectionComplete
 
makVrv::DtSelectionManager::IdSet myEditingObjects
 
boost::signals2::connection myObjectRemovalConnection
 
VrfObjectEditFacadeList myObjectImages
 
DtReferenceEllipsoid * myReferenceForConversion
 
DtAltitudeClampType myAltitudeClampType
 
bool myOverlayChanged
 
bool myIgnoreFirstMouseClick
 
bool myShowPropertiesDialogBeforeCreate
 
DtGeodeticCoord myAnchorPosition
 
DtTimedSection * myDeferredStopTimer
 
double myTotalTimeElapsed
 
double myDeferStopFor
 
bool myGroundClampOnPlacement
 
bool myPublishObject
 
std::vector< std::string > myKeywords
 
int myCursorCount
 
bool myFacadesVisible
 
DtVrlinkSimulatedBaseStateViewmyPrincipalStateView
 
ContentMessages myContentMessages
 
DtEditingType myEditingType
 
int mySelectionCount
 
bool myMultiSelection
 
DtUUID myUUIDForCreation
 
StateViewConnections myStateViewConnections
 
bool myShowingPropertiesDialog
 
makVrv::DtSignalConnectionManager myConnections
 
makVrv::DtSignalConnectionManager myCreateConnections
 
makVrv::DtUniqueID myEmbarkOnId
 
bool myEmbarkInSlotIfAvailable
 
bool myOverlayHasBeenSet
 
bool myWarpMouseToOrigin
 
bool myCheckedEmbark
 
bool myCanEmbark
 
bool myDoNotClamp
 
std::vector< makVrv::DtElementIDmyUnifiedIgnoreList
 
std::set< makVrv::DtUniqueIDmyDIGuyIdsIgnored
 
std::vector< makVrv::DtUniqueIDmyModelIds
 
std::vector< makVrv::DtElementIDmyOverrideIdsToIgnore
 
std::vector
< DtVrfObjectManipulationHandlerBaseClass * > 
myNotifyOnFinalFacade
 
bool myCreationEndedWithDoubleClick
 

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::signals2::signal< void(const
DtVector &, int)> 
signal_pointLocationChanged
 
boost::signals2::signal< void()> signal_pointSamplingRateChanged
 
boost::signals2::signal< void(double)> signal_floorChanged
 
boost::signals2::signal< void(double)> signal_ceilingChanged
 
boost::signals2::signal< void(const
std::vector< DtVector > &)> 
signal_locationsChanged
 
boost::signals2::signal< void()> signal_refreshLocation
 
- Public Attributes inherited from makVrf::DtVrfObjectManipulationHandlerBaseClass
boost::signals2::signal< void(bool)> signal_embarkationAllowedChanged
 Signal emitted when the embarkation allowed state changes. More...
 
boost::signals2::signal< void(bool)> signal_showPropertiesDialog
 There are some instances where a handler does not want to finish up when creating. More...
 
boost::signals2::signal< void(bool)> signal_attachObjectToMouse
 Signal sent when attached object to mouse changes. More...
 
boost::signals2::signal< void(DtVrfObjectFacadeInterface
*, DtVrlinkSimulatedBaseStateView
*editStateView)> 
signal_preVisualization
 Signal sent before any visualizers are created on the interface. More...
 
boost::signals2::signal< void(DtVrfObjectFacadeInterface
*, bool)> 
signal_objectFacadeCreated
 signal sent after the facade is created. More...
 
boost::signals2::signal< void(const
DtEntityType &, int)> 
signal_started
 Signaled when entity creation has started. More...
 
boost::signals2::signal< void(DtVrfObjectManipulationHandlerBaseClass *)> signal_multiSelectonCreationComplete
 If flag is set to signal this, signals when the creation of all objects for a multi-select is complete. More...
 
boost::signals2::signal< void(bool)> signal_altitudeAllowedChanged
 signal sent when altitude allowed changes More...
 
boost::signals2::signal< void(const
ObjectManipulationData &)> 
signal_createObject
 signal sent when object wants to be created More...
 
boost::signals2::signal< void(const
DtString &, const DtString &)> 
signal_createTerrainProp
 signal sent when prop wants to be created More...
 
boost::signals2::signal< void(DtVrfObjectManipulationHandlerBaseClass *)> signal_stopped
 Sent when entity creation has stopped. More...
 
boost::signals2::signal< void(DtVrfObjectManipulationHandlerBaseClass *)> signal_eventProcessorRemoved
 Sent when the event processor has been destroyed. More...
 
boost::signals2::signal< void(DtVrfObjectManipulationHandlerBaseClass *)> signal_complete
 Sent when entity creation has completed (right-click) More...
 
boost::signals2::signal< void(const
DtVector &)> 
signal_locationChanged
 signal sent when the mouse changes location during creation/editing More...
 
boost::signals2::signal< void(double)> signal_headingChanged
 signal sent when the mouse changes the orientation of an object during creation/editing More...
 
boost::signals2::signal< void(double)> signal_pitchChanged
 signal sent when the mouse changes the pitch of an object during creation/editing More...
 
boost::signals2::signal< void(double)> signal_altitudeChanged
 signal sent when the mouse changes the altitude of an object during creation/editing More...
 
boost::signals2::signal< void(const
DtVector &)> 
signal_placement
 signal sent when the left mouse is pressed during creation/editing More...
 
boost::signals2::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. More...
 
boost::signals2::signal< void(const
makVrv::DtUniqueID &)> 
signal_principalStateViewUpdated
 Sent when principal state view is updated for editing. More...
 
boost::signals2::signal< void(DtVrfObjectFacadeInterface *)> signal_objectFacadeAboutToBeRemoved
 Sent when object facade interface is about to be removed. More...
 
boost::signals2::signal< void(int)> signal_forceChanged
 Sent when force changed. More...
 
- Protected Types inherited from makVrf::DtVrfObjectManipulationHandlerBaseClass
typedef std::map
< DtVrlinkSimulatedBaseStateView
*, makVrv::DtSignalConnectionManager * > 
StateViewConnections
 
- Protected Member Functions inherited from makVrf::DtVrfShapeManipulationHandler
virtual
DtEnvironmentalFacadeCollection
createFacadeInterface ()
 
virtual void postCreateInitialize (DtVrfObjectFacadeInterface *)
 
virtual double defaultAltitudeOffsetFor (DtVrfObjectFacadeInterface *i) const
 
virtual void calculateAnchorBasedOnMousePosition (makVrv::DtChannel &channel)
 
virtual void slot_onEditComplete (makVrv::DtUniqueID id, const DtVector &location, double altAboveGround)
 
virtual DtVector geometricCenter (DtVrfObjectFacadeInterface *, const std::vector< DtVector > &v) const
 
virtual void slot_onPlace (makVrv::DtUniqueID, const DtVector &location, double altAboveGround)
 
virtual void slot_onComplete (bool stopCreating)
 
virtual void setFloorAltitude (DtEnvironmentalFacadeCollection *env, const DtVector &location, double altAboveGround)
 
virtual void slot_onCancel (bool escPressed)
 
virtual void slot_onCancelOrComplete (bool escPressed)
 
virtual void slot_onLocationChanged (const DtVector &location, double altAboveGround)
 
virtual void slot_onAltitudeChanged (const DtVector &location, double altitude)
 
virtual DtVector addControlPoint (int index=-1)
 
virtual void moveSelectedPoint (const DtVector &location, double altAboveGround)
 
virtual bool isArea (const DtEntityType &type) const
 
virtual bool isRoute (const DtEntityType &type) const
 
virtual bool isObstacle (const DtEntityType &type) const
 
virtual bool isPhaseline (const DtEntityType &type) const
 
virtual DtEnvironmentalCreationData environmentalCreationData (const std::string &name, const DtEntityType &, int force) const
 
virtual void updateLocationOffset (const DtVector &local, DtEnvironmentalFacadeCollection *env, int pos)
 
virtual DtVector setAltitudeToOrigin (const DtVector &) const
 Sets the altitude of the supplied point (local) to the same altitude as the origin and returns that new point. More...
 
virtual DtVector rotatedPoint (const DtVector &origin, double x, double heading, DtEnvironmentalFacadeCollection *efc) const
 Attempts to rotate point until exact distance is retrieved. More...
 
virtual DtVector rotatePoint (const DtVector &origin, double x, double heading, DtEnvironmentalFacadeCollection *efc) const
 Rotate a point and just take the result regardless of the distance achieved after rotation (meaning actual straight line distance could be different in geocentric due to earch curvature) More...
 
virtual bool alwaysRecalculateGeometry () const
 
virtual DtVector rotatePointInternal (const DtVector &origin, double x, double heading, DtEnvironmentalFacadeCollection *efc) const
 
virtual void updateOffsetsBasedOnMousePosition ()
 Will go through all objects and update their current origins based on the mouse position. More...
 
virtual void setupImagePointsUsingImageOffset (DtEnvironmentalFacadeCollection *, const std::vector< DtVector > &)
 
- Protected Member Functions inherited from makVrf::DtVrfObjectManipulationHandlerBaseClass
virtual void clearConnections ()
 
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. More...
 
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. More...
 
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. More...
 
virtual void slot_onPrincipalStateViewUpdated (DtVrlinkSimulatedBaseStateView *principalStateView, const makVrv::DtUniqueID &principalSceneObjectId)
 
virtual void slot_onStateViewUpdated (DtVrlinkSimulatedBaseStateView *editStateView, makVrv::DtUniqueID sceneObjectId, DtVrlinkSimulatedBaseStateView *principalStateView)
 
virtual void initializeLocationChangeConnections ()
 Initialize connections for altitude and location change. More...
 
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. More...
 
virtual void setObjectImageAsAnchor (DtVrfObjectFacadeInterface *objectImage, const DtVector &geocLocation, bool resetOrigin=false)
 
virtual void setHeading (DtVrfObjectFacadeInterface *objectImage, double heading)
 
virtual void setPitch (DtVrfObjectFacadeInterface *objectImage, double heading)
 
virtual std::string defaultOverlayFor (const DtRwNLengthStringVector &) const
 
virtual std::string defaultOverlayFor (const DtModelSetEntry *e) const
 
virtual bool continueWithHandlerCancelOnLastObjectRemoval ()
 
virtual bool isOkToStopEditing ()
 
virtual void handlerDisabled ()
 
virtual void setObjectImageRelativeToPrincipal (DtVrfObjectFacadeInterface *objectImage, const DtVector &thisGeocLocation, const DtTaitBryan &thisGeocOrientation, const DtVector &prGeocLocation, const DtTaitBryan &prGeocOrientation)
 
virtual void setObjectImageRelativeTo (DtVrfObjectFacadeInterface *objectImage, const DtVector &thisGeocLocation, const DtVector &prGeocLocation, bool relativeOnly=false)
 If relativeOnly is true, do not set new origin – only set the fact that the image is relate to the prGeocLocation given. More...
 
virtual void setObjectImageRelativeToAltitudeOnly (DtVrfObjectFacadeInterface *objectImage, const DtVector &thisGeocLocation, const DtVector &prGeocLocation)
 Sets relative by altitude on – x/y location is the same. More...
 
virtual void calculateAnchor (const DtVector &localAnchor)
 
virtual void initializeAltitudeAboveTerrainForEdit (double curAlt, const DtVector &curPos, DtVrfObjectFacadeInterface *iFace)
 
virtual bool clampOnPlacement () const
 Return true to clamp object to closest polygon when placed on terrain regardless of altitude set. More...
 
virtual bool setupIgnoreLists ()
 
virtual void removeObjectBecauseOfDeletion (DtVrfObjectFacadeInterface *)
 
virtual void slot_elementsCreated (const std::vector< makVrv::DtElementID > &)
 When elements are created if they are the ones we are creating, then, signal they are created (again) More...
 

Detailed Description

Creation/edit of entity objects.

Constructor & Destructor Documentation

makVrf::DtVrfPersistentTrackSwitchHandler::DtVrfPersistentTrackSwitchHandler ( makVrv::DtDe )
virtual makVrf::DtVrfPersistentTrackSwitchHandler::~DtVrfPersistentTrackSwitchHandler ( )
virtual

Member Function Documentation

virtual HandlerType makVrf::DtVrfPersistentTrackSwitchHandler::type ( ) const
inlinevirtual

The type of handler. Used to see if two handler are equivalent.

Reimplemented from makVrf::DtVrfShapeManipulationHandler.

References makVrf::Detonation.

virtual bool makVrf::DtVrfPersistentTrackSwitchHandler::clampAtClosestPolygonOnPlacement ( ) const
virtual

Return true to keep the placement at closest polygon level regardless of height above terrain. Default is false.

Reimplemented from makVrf::DtVrfShapeManipulationHandler.

virtual bool makVrf::DtVrfPersistentTrackSwitchHandler::canSetActivationTime ( ) const
virtual

Returns true if activation time can be set.

Currently true for all environmentals that do not have the noactivationtime keyword

Reimplemented from makVrf::DtVrfObjectManipulationHandlerBaseClass.

virtual bool makVrf::DtVrfPersistentTrackSwitchHandler::needsEmbarkOnCheck ( ) const
virtual

Return true if this needs to check whether or not this object can embark on another object. Default is false.

Reimplemented from makVrf::DtVrfObjectManipulationHandlerBaseClass.

virtual bool makVrf::DtVrfPersistentTrackSwitchHandler::canEmbark ( ) const
virtual

Returns true as to whether or not this item can even be allowed to embark in general.

This is different than the embarkationAllowed() flag in that this will control whether or not the entity is even given the chance to embark vs. whether or not the entity can embark on the entity that it is currently over

Reimplemented from makVrf::DtVrfShapeManipulationHandler.

virtual bool makVrf::DtVrfPersistentTrackSwitchHandler::createVrfObject ( DtVrfObjectFacadeInterface )
virtual

Called to create an object at the current location, heading, and altitude stored in the internal variables.

Reimplemented from makVrf::DtVrfShapeManipulationHandler.

virtual bool makVrf::DtVrfPersistentTrackSwitchHandler::modifyVrfObject ( DtVrfObjectFacadeInterface objectImage)
virtual

Called for each object to be modified.

Reimplemented from makVrf::DtVrfShapeManipulationHandler.

virtual DtVrfObjectFacadeInterface* makVrf::DtVrfPersistentTrackSwitchHandler::createLocalRepresentation ( DtVrlinkSimulatedBaseStateView editStateView = 0)
virtual

returns true if successful, false otherwise

Reimplemented from makVrf::DtVrfShapeManipulationHandler.

virtual void makVrf::DtVrfPersistentTrackSwitchHandler::initializeEventProcessor ( )
virtual
virtual bool makVrf::DtVrfPersistentTrackSwitchHandler::canChangePositionOnly ( ) const
virtual
virtual DtVrfObjectFacadeInterface* makVrf::DtVrfPersistentTrackSwitchHandler::createLocalRepresentation ( DtVrlinkSimulatedBaseStateView editStateView,
makVrv::DtUniqueID  sceneObjectId,
DtVrlinkSimulatedBaseStateView principalStateView 
)
virtual
virtual void makVrf::DtVrfPersistentTrackSwitchHandler::setLocationToSwitch ( const DtVector )
virtual
const DtVector& makVrf::DtVrfPersistentTrackSwitchHandler::locationToSwitch ( ) const
inline

Member Data Documentation

DtVector makVrf::DtVrfPersistentTrackSwitchHandler::myLocationToSwitch
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)