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

Creation/edit of entity objects. More...

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

Public Member Functions

 DtVrfEntityManipulationHandler (makVrv::DtDe &)
 
virtual ~DtVrfEntityManipulationHandler ()
 
virtual void setForce (int f)
 Sets the force of the object. More...
 
virtual void setLabel (const std::string &)
 Sets label of item. Default is no-op. More...
 
virtual std::string label () const
 
virtual void setExtendedLabels (const std::map< int, DtString > &)
 
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 void setVisualMarking (const std::string &linkageName, const std::string &value)
 
virtual std::map< std::string,
std::string > 
markingDecalMap () 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 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 editing. 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 bool canEmbark () const
 Returns true as to whether or not this item can even be allowed to embark in general. More...
 
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
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
 
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_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. 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 slot_onAltitudeChanged (const DtVector &, double)
 
virtual void cancel ()
 Cancels any current work. Default calls slot_onCancel. 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 centerOfMass () const
 Returns center of mass of all objects created (in geocentric) More...
 
virtual DtVector sumOfAllLocations () const
 Returns the sum of all the locations of all the object items present in this handler. More...
 
virtual void updateOffsetsBasedOnMousePosition (const DtVector &centerOfMass, const DtGeodeticCoord &, bool usImagePoints=false)
 Reset objects based on new center. 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)
 

Public Attributes

boost::signals2::signal< void(std::string,
std::string)> 
signal_markingDecalSet
 
boost::signals2::signal< void()> signal_startOfMarkingDecalSet
 These signals are needed because of variants/subvariants and not knowing in which order they are being initialized by this object. More...
 
boost::signals2::signal< void()> signal_endOfMarkingDecalSet
 
- 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 Member Functions

virtual DtEntityFacadeCollectioncreateFacadeInterface ()
 
virtual bool canChangeAltitudeOf (const DtEntityType &) const
 
virtual void initializeAltitudeAboveTerrainForEdit (double curAlt, const DtVector &curPos, DtVrfObjectFacadeInterface *iFace)
 
virtual void updateOffsetsBasedOnMousePosition ()
 Update interface to show altitude in multi-selection mode if the entity is of a type that can change it's altitude and allow altitude change for all items if all items have altitude displayed. More...
 
virtual void collectionVisualized (DtVrfObjectFacadeInterface *)
 
virtual bool createVrfObject (DtVrfObjectFacadeInterface *)
 Called to create an object at the current location, heading, and altitude stored in the internal variables. More...
 
virtual void initializeInterfaceForEdit (DtVrfObjectFacadeInterface *iFace, makVrv::DtUniqueID sceneObjectId, const makVrv::DtVrlinkSimulatedBaseState &editState, const DtVector &principalLocation, const DtTaitBryan &principalOrientation)
 
virtual bool modifyVrfObject (DtVrfObjectFacadeInterface *)
 
virtual
DtVrfObjectFacadeInterface
createLocalRepresentation (DtVrlinkSimulatedBaseStateView *editStateView=0)
 returns true if successful, false otherwise More...
 
virtual
DtVrfObjectFacadeInterface
createLocalRepresentation (DtVrlinkSimulatedBaseStateView *editStateView, makVrv::DtUniqueID sceneObjectId, DtVrlinkSimulatedBaseStateView *principalStateView)
 
virtual void initializeEventProcessor ()
 
virtual void postCreateInitialize (DtVrfObjectFacadeInterface *)
 
virtual void randomlyChooseDIGuyAppearance (const DtRwNLengthStringVector &, DtEntityFacadeCollection *)
 
virtual void randomlyChooseDIGuyHandItem (const DtRwNLengthStringVector &, DtEntityFacadeCollection *)
 
virtual void randomlyChooseDIGuyHead (const DtRwNLengthStringVector &, DtEntityFacadeCollection *)
 
virtual void handlerDisabled ()
 
virtual DtIfEmbarkObjectcreateEmbarkObjectMessage (const DtVector &geocentricEmbarkeePosition) const
 
virtual double defaultAltitudeOffsetFor (DtVrfObjectFacadeInterface *) const
 Given an object image, return the default bounding volume offset for that image. More...
 
virtual DtEntityType entityTypeBasedOnKey () const
 If the key would be a random type, then get the random object type for the key, else return they key. More...
 
virtual void setupVisualMetaDataFor (DtEntityFacadeCollection *, bool skipVariants=false)
 
virtual DtIfExecuteSimCommandcreateMarkingTextSet (DtEntityFacadeCollection *) const
 
virtual DtScriptedTaskSetcreateMarkingTextScriptedSet (DtEntityFacadeCollection *ent) const
 
- 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 void slot_onCancel (bool escPressed)
 
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 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 calculateAnchorBasedOnMousePosition (makVrv::DtChannel &channel)
 
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 *)
 

Protected Attributes

DtRwDIGuyCharacterInfo myDIGuyCharacterInformation
 
- 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::signalslib::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::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
 

Additional Inherited Members

- Public Types inherited from makVrf::DtVrfObjectManipulationHandlerBaseClass
typedef std::vector
< DtVrfObjectFacadeInterface * > 
VrfObjectEditFacadeList
 
typedef std::map< std::string,
DtSimInterfaceContent * > 
ContentMessages
 
- Protected Types inherited from makVrf::DtVrfObjectManipulationHandlerBaseClass
typedef std::map
< DtVrlinkSimulatedBaseStateView
*, makVrv::DtSignalConnectionManager * > 
StateViewConnections
 

Detailed Description

Creation/edit of entity objects.

Constructor & Destructor Documentation

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

Member Function Documentation

virtual void makVrf::DtVrfEntityManipulationHandler::setForce ( int  )
virtual

Sets the force of the object.

Reimplemented from makVrf::DtVrfObjectManipulationHandlerBaseClass.

virtual void makVrf::DtVrfEntityManipulationHandler::setLabel ( const std::string &  )
virtual

Sets label of item. Default is no-op.

Reimplemented from makVrf::DtVrfObjectManipulationHandlerBaseClass.

virtual std::string makVrf::DtVrfEntityManipulationHandler::label ( ) const
virtual
virtual void makVrf::DtVrfEntityManipulationHandler::setExtendedLabels ( const std::map< int, DtString > &  )
virtual
virtual HandlerType makVrf::DtVrfEntityManipulationHandler::type ( ) const
inlinevirtual

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

Implements makVrf::DtVrfObjectManipulationHandlerBaseClass.

Reimplemented in makVrf::DtVrfPropManipulationHandler.

References makVrf::Entity.

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

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

Reimplemented from makVrf::DtVrfObjectManipulationHandlerBaseClass.

virtual bool makVrf::DtVrfEntityManipulationHandler::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::DtVrfEntityManipulationHandler::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 void makVrf::DtVrfEntityManipulationHandler::setVisualMarking ( const std::string &  linkageName,
const std::string &  value 
)
virtual
virtual std::map<std::string, std::string> makVrf::DtVrfEntityManipulationHandler::markingDecalMap ( ) const
virtual
virtual DtEntityFacadeCollection* makVrf::DtVrfEntityManipulationHandler::createFacadeInterface ( )
protectedvirtual
virtual bool makVrf::DtVrfEntityManipulationHandler::canChangeAltitudeOf ( const DtEntityType &  ) const
protectedvirtual
virtual void makVrf::DtVrfEntityManipulationHandler::initializeAltitudeAboveTerrainForEdit ( double  curAlt,
const DtVector curPos,
DtVrfObjectFacadeInterface iFace 
)
protectedvirtual
virtual void makVrf::DtVrfEntityManipulationHandler::updateOffsetsBasedOnMousePosition ( )
protectedvirtual

Update interface to show altitude in multi-selection mode if the entity is of a type that can change it's altitude and allow altitude change for all items if all items have altitude displayed.

Reimplemented from makVrf::DtVrfObjectManipulationHandlerBaseClass.

virtual void makVrf::DtVrfEntityManipulationHandler::collectionVisualized ( DtVrfObjectFacadeInterface )
protectedvirtual
virtual bool makVrf::DtVrfEntityManipulationHandler::createVrfObject ( DtVrfObjectFacadeInterface )
protectedvirtual

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

Reimplemented from makVrf::DtVrfObjectManipulationHandlerBaseClass.

virtual void makVrf::DtVrfEntityManipulationHandler::initializeInterfaceForEdit ( DtVrfObjectFacadeInterface iFace,
makVrv::DtUniqueID  sceneObjectId,
const makVrv::DtVrlinkSimulatedBaseState editState,
const DtVector principalLocation,
const DtTaitBryan &  principalOrientation 
)
protectedvirtual
virtual bool makVrf::DtVrfEntityManipulationHandler::modifyVrfObject ( DtVrfObjectFacadeInterface )
protectedvirtual
virtual DtVrfObjectFacadeInterface* makVrf::DtVrfEntityManipulationHandler::createLocalRepresentation ( DtVrlinkSimulatedBaseStateView editStateView = 0)
protectedvirtual

returns true if successful, false otherwise

Implements makVrf::DtVrfObjectManipulationHandlerBaseClass.

Reimplemented in makVrf::DtVrfPropManipulationHandler.

virtual DtVrfObjectFacadeInterface* makVrf::DtVrfEntityManipulationHandler::createLocalRepresentation ( DtVrlinkSimulatedBaseStateView editStateView,
makVrv::DtUniqueID  sceneObjectId,
DtVrlinkSimulatedBaseStateView principalStateView 
)
protectedvirtual
virtual void makVrf::DtVrfEntityManipulationHandler::initializeEventProcessor ( )
protectedvirtual
virtual void makVrf::DtVrfEntityManipulationHandler::postCreateInitialize ( DtVrfObjectFacadeInterface )
protectedvirtual
virtual void makVrf::DtVrfEntityManipulationHandler::randomlyChooseDIGuyAppearance ( const DtRwNLengthStringVector ,
DtEntityFacadeCollection  
)
protectedvirtual
virtual void makVrf::DtVrfEntityManipulationHandler::randomlyChooseDIGuyHandItem ( const DtRwNLengthStringVector ,
DtEntityFacadeCollection  
)
protectedvirtual
virtual void makVrf::DtVrfEntityManipulationHandler::randomlyChooseDIGuyHead ( const DtRwNLengthStringVector ,
DtEntityFacadeCollection  
)
protectedvirtual
virtual void makVrf::DtVrfEntityManipulationHandler::handlerDisabled ( )
protectedvirtual
virtual DtIfEmbarkObject* makVrf::DtVrfEntityManipulationHandler::createEmbarkObjectMessage ( const DtVector geocentricEmbarkeePosition) const
protectedvirtual
virtual double makVrf::DtVrfEntityManipulationHandler::defaultAltitudeOffsetFor ( DtVrfObjectFacadeInterface ) const
protectedvirtual

Given an object image, return the default bounding volume offset for that image.

Reimplemented from makVrf::DtVrfObjectManipulationHandlerBaseClass.

virtual DtEntityType makVrf::DtVrfEntityManipulationHandler::entityTypeBasedOnKey ( ) const
protectedvirtual

If the key would be a random type, then get the random object type for the key, else return they key.

virtual void makVrf::DtVrfEntityManipulationHandler::setupVisualMetaDataFor ( DtEntityFacadeCollection ,
bool  skipVariants = false 
)
protectedvirtual
virtual DtIfExecuteSimCommand* makVrf::DtVrfEntityManipulationHandler::createMarkingTextSet ( DtEntityFacadeCollection ) const
protectedvirtual
virtual DtScriptedTaskSet* makVrf::DtVrfEntityManipulationHandler::createMarkingTextScriptedSet ( DtEntityFacadeCollection ent) const
protectedvirtual

Member Data Documentation

boost::signals2::signal<void (std::string, std::string)> makVrf::DtVrfEntityManipulationHandler::signal_markingDecalSet
boost::signals2::signal<void ()> makVrf::DtVrfEntityManipulationHandler::signal_startOfMarkingDecalSet

These signals are needed because of variants/subvariants and not knowing in which order they are being initialized by this object.

This is used to signal to the viewer to cache the information and then set it once done

boost::signals2::signal<void ()> makVrf::DtVrfEntityManipulationHandler::signal_endOfMarkingDecalSet
DtRwDIGuyCharacterInfo makVrf::DtVrfEntityManipulationHandler::myDIGuyCharacterInformation
protected

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

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)