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

The Master Scenario Settings Dialog. More...

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

Public Member Functions

 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 HandlerType type () const
 The type of handler. Used to see if two handler are equivalent.
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.
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.
virtual double altitudeAboveTerrain (int) const
virtual bool canChangeDimensions () const
 Returns true if there is no fixed width and no fixed height.
virtual double maximumLength () const
 Returns the maximum length a linear object can have. -1 if no max.
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 void getMinMaxVertices (const DtEntityType &creatingType, int &minVert, int &maxVert) const
 Returns the minimum/maximum vertices of the given type.
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< 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.
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 setLength (double)
 Set fixed length of line from 0 to 1 point.
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 &centerOfMass, 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
 Valid only for areal objects that are volumetric, get/set floor/ceiling of area.
virtual void setCeiling (double)
 Valid only for areal objects that are volumetric, get/set floor/ceiling of area.
virtual double ceiling () const
 Valid only for areal objects that are volumetric, get/set floor/ceiling of area.
- 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 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 ContentMessagescontentMessages () 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 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 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 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 bool anchorPositionIsMouse () const
 If false (default is true) will have the anchor position be the principal object. By default it is the mouse 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 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 slot_onHeadingChanged (double heading)
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 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)

Public Attributes

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
- Public Attributes inherited from makVrf::DtVrfObjectManipulationHandlerBaseClass
boost::signal< void(bool)> signal_embarkationAllowedChanged
 Signal emitted when the embarkation allowed state changes.
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(DtVrfObjectManipulationHandlerBaseClass *)> signal_multiSelectonCreationComplete
 If flag is set to signal this, signals when the creation of all objects for a multi-select is complete.
boost::signal< void(bool)> signal_altitudeAllowedChanged
 signal sent when altitude allowed changes
boost::signal< void(const
ObjectManipulationData &)> 
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 postCreateInitialize (DtVrfObjectFacadeInterface *)
virtual bool clampAtClosestPolygonOnPlacement () const
 Return true to keep the placement at closest polygon level regardless of height above terrain. Default is false.
virtual void calculateAnchorBasedOnMousePosition (makVrv::DtChannel &channel)
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.
virtual void slot_onEditComplete (makVrv::DtUniqueID id, const DtVector &location, double altAboveGround)
virtual void initializeEventProcessor ()
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 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
DtVrfObjectFacadeInterface
createLocalRepresentation (DtVrlinkSimulatedBaseStateView *editStateView=0)
 returns true if successful, false otherwise
virtual DtVector addControlPoint (int index=-1)
virtual
DtVrfObjectFacadeInterface
createLocalRepresentation (DtVrlinkSimulatedBaseStateView *editStateView, makVrv::DtUniqueID sceneObjectId, DtVrlinkSimulatedBaseStateView *principalStateView)
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 bool modifyVrfObject (DtVrfObjectFacadeInterface *objectImage)
 Called for each object to be modified.
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.
virtual DtVector rotatedPoint (const DtVector &origin, double x, double heading) const
 Attempts to rotate point until exact distance is retrieved.
virtual DtVector rotatePoint (const DtVector &origin, double x, double heading) 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)
virtual bool alwaysRecalculateGeometry () const
virtual DtVector rotatePointInternal (const DtVector &origin, double x, double heading) const
virtual void updateOffsetsBasedOnMousePosition ()
 Will go through all objects and update their current origins based on the mouse position.
virtual void setupImagePointsUsingImageOffset (DtEnvironmentalFacadeCollection *, const std::vector< DtVector > &)
- Protected Member Functions inherited from makVrf::DtVrfObjectManipulationHandlerBaseClass
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 std::string stripNumbers (const std::string &base) const
virtual double defaultAltitudeOffsetFor (DtVrfObjectFacadeInterface *i) 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 setHeading (DtVrfObjectFacadeInterface *objectImage, double heading)
virtual std::string defaultOverlayFor (const DtRwNLengthStringVector &) const
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.
virtual void setObjectImageRelativeToAltitudeOnly (DtVrfObjectFacadeInterface *objectImage, const DtVector &thisGeocLocation, const DtVector &prGeocLocation)
 Sets relative by altitude on – x/y location is the same.
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.

Protected Attributes

int myMaxVertices
int myMinVertices
DtGeodeticCoord myLastPosition
bool myRecentered
DtVector myRecenteredPos
int myPointSamplingRate
std::vector< DtVectormyControlPoints
 Used to refactor points for sampling rate change.
bool myShapeVerticesDisabled
- 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
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
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
StateViewConnections myStateViewConnections
bool myShowingPropertiesDialog
makVrv::DtSignalConnectionManager myConnections
makVrv::DtUniqueID myEmbarkOnId
bool myEmbarkInSlotIfAvailable
bool myOverlayHasBeenSet
bool myWarpMouseToOrigin
bool myCheckedEmbark
bool myCanEmbark

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

The Master Scenario Settings Dialog.

Constructor & Destructor Documentation

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

Member Function Documentation

virtual void makVrf::DtVrfShapeManipulationHandler::setPoints ( const std::vector< DtVector > &  pts)
virtual
virtual void makVrf::DtVrfShapeManipulationHandler::setPoints ( const std::vector< DtGeodeticCoord > &  pts)
virtual
const std::vector<DtVector>& makVrf::DtVrfShapeManipulationHandler::points ( ) const
virtual bool makVrf::DtVrfShapeManipulationHandler::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::DtVrfObjectManipulationHandlerBaseClass.

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

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.

Reimplemented from makVrf::DtVrfObjectManipulationHandlerBaseClass.

Reimplemented in makVrf::DtVrfWeatherManipulationHandler.

virtual void makVrf::DtVrfShapeManipulationHandler::addControlPoint ( const DtVector location,
int  index = -1 
)
virtual
virtual void makVrf::DtVrfShapeManipulationHandler::removeControlPoint ( int  index)
virtual
virtual HandlerType makVrf::DtVrfShapeManipulationHandler::type ( ) const
inlinevirtual
virtual void makVrf::DtVrfShapeManipulationHandler::setLocation ( int  index,
const DtVector location,
bool  resetOrigin = true 
)
virtual
virtual void makVrf::DtVrfShapeManipulationHandler::setAltitudeAboveSeaLevel ( int  ,
double   
)
virtual

Set altitude above sea level for the particular point.

Will not effect altitude above ground level. If setLocation is called after this for the same index, the sea level point will change to reflect the new altitude

virtual double makVrf::DtVrfShapeManipulationHandler::altitudeAboveSeaLevel ( int  ) const
virtual
virtual void makVrf::DtVrfShapeManipulationHandler::initializeInterfaceForEdit ( DtVrfObjectFacadeInterface iFace,
makVrv::DtUniqueID  sceneObjectId,
const makVrv::DtVrlinkSimulatedBaseState editState,
const DtVector principalLocation,
const DtTaitBryan &  principalOrientation 
)
virtual
virtual void makVrf::DtVrfShapeManipulationHandler::setAltitudeAboveTerrain ( int  ,
double   
)
virtual

Set altitude above terrain for the particular point.

Will not effect altitude above sea level. If setLocation is called after this for the same index, the terrain point will change to reflect the new altitude

virtual double makVrf::DtVrfShapeManipulationHandler::altitudeAboveTerrain ( int  ) const
virtual
virtual bool makVrf::DtVrfShapeManipulationHandler::canChangeDimensions ( ) const
virtual

Returns true if there is no fixed width and no fixed height.

virtual double makVrf::DtVrfShapeManipulationHandler::maximumLength ( ) const
virtual

Returns the maximum length a linear object can have. -1 if no max.

Reimplemented in makVrf::DtVrfBoxManipulationHandler.

virtual bool makVrf::DtVrfShapeManipulationHandler::shapeAtMinimum ( ) const
virtual

Returns true if the shape has the minimum number of points to create.

virtual bool makVrf::DtVrfShapeManipulationHandler::canRemovePoint ( ) const
virtual
virtual bool makVrf::DtVrfShapeManipulationHandler::shapeAtMinimum ( DtEnvironmentStateView )
virtual
virtual bool makVrf::DtVrfShapeManipulationHandler::canDeleteAPoint ( DtEnvironmentStateView )
virtual

Returns true if a point can be deleted from this object.

virtual bool makVrf::DtVrfShapeManipulationHandler::shapeAtMaximum ( ) const
virtual

Returns true if the shape has the minimum number of points to create.

virtual bool makVrf::DtVrfShapeManipulationHandler::shapeAtMaximum ( DtEnvironmentStateView )
virtual
virtual void makVrf::DtVrfShapeManipulationHandler::getMinMaxVertices ( const DtEntityType &  creatingType,
int &  minVert,
int &  maxVert 
) const
virtual

Returns the minimum/maximum vertices of the given type.

If there is a facade and keywords will use that for information as well

Reimplemented in makVrf::DtVrfBoxManipulationHandler, and makVrf::DtVrfCircleManipulationHandler.

virtual int makVrf::DtVrfShapeManipulationHandler::numVertices ( ) const
virtual

Returns the number of vertices in the principal object.

virtual void makVrf::DtVrfShapeManipulationHandler::setEditingPoint ( int  )
virtual
virtual int makVrf::DtVrfShapeManipulationHandler::editingPoint ( ) const
virtual
virtual DtGeodeticCoord makVrf::DtVrfShapeManipulationHandler::geodeticPosition ( int  ) const
virtual
virtual DtVector makVrf::DtVrfShapeManipulationHandler::geocentricPosition ( int  ) const
virtual
virtual DtVector makVrf::DtVrfShapeManipulationHandler::localLocation ( int  index) const
virtual

location + altitude

virtual std::vector<DtGeodeticCoord> makVrf::DtVrfShapeManipulationHandler::geodeticPositions ( ) const
virtual
virtual std::vector<DtVector> makVrf::DtVrfShapeManipulationHandler::geocentricPositions ( ) const
virtual
virtual void makVrf::DtVrfShapeManipulationHandler::removePoint ( int  )
virtual
virtual void makVrf::DtVrfShapeManipulationHandler::setShapeVerticesDisabled ( bool  )
virtual

Disable the showing of vertices on a shape. must be called before the facade is created.

virtual bool makVrf::DtVrfShapeManipulationHandler::shapeVerticesDisabled ( ) const
virtual
virtual double makVrf::DtVrfShapeManipulationHandler::altitudeForAltitudeType ( int  ) const
virtual

Return the altitude given the current altitude type set. Goes to facade for information.

virtual bool makVrf::DtVrfShapeManipulationHandler::freehand ( ) const
virtual

Returns true if in freehand mode.

virtual bool makVrf::DtVrfShapeManipulationHandler::canChangeArrowStyle ( ) const
virtual

Returns true if the arrow style can be changed.

virtual bool makVrf::DtVrfShapeManipulationHandler::canChangeArrowSize ( ) const
virtual
virtual bool makVrf::DtVrfShapeManipulationHandler::canFill ( ) const
virtual
virtual bool makVrf::DtVrfShapeManipulationHandler::canChangePenStyle ( ) const
virtual
virtual bool makVrf::DtVrfShapeManipulationHandler::canChangeShapeOnly ( ) const
virtual

Returns true if only the shape can be changed and none of the other object parameters.

virtual void makVrf::DtVrfShapeManipulationHandler::setPointSamplingRate ( int  )
virtual

Sets the sampling rate for points.

Note that once changes are committed points removed due to a lower sampling rate are removed

virtual int makVrf::DtVrfShapeManipulationHandler::pointSamplingRate ( ) const
virtual
virtual void makVrf::DtVrfShapeManipulationHandler::setLineWidth ( int  )
virtual

Sets the line width of the line or outside of area.

virtual int makVrf::DtVrfShapeManipulationHandler::lineWidth ( ) const
virtual
virtual void makVrf::DtVrfShapeManipulationHandler::setPenStyle ( int  )
virtual

Sets the pen style of the line or the style of the area border.

virtual int makVrf::DtVrfShapeManipulationHandler::penStyle ( ) const
virtual
virtual void makVrf::DtVrfShapeManipulationHandler::setFillStyle ( int  )
virtual

Sets the fill style of the area.

virtual int makVrf::DtVrfShapeManipulationHandler::fillStyle ( ) const
virtual
virtual bool makVrf::DtVrfShapeManipulationHandler::fixedWidthSizing ( ) const
virtual

Returns whether or not line is in fixed width sizing mode.

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

Sets the force of the object.

Reimplemented from makVrf::DtVrfObjectManipulationHandlerBaseClass.

virtual void makVrf::DtVrfShapeManipulationHandler::setColor ( int  )
virtual
virtual int makVrf::DtVrfShapeManipulationHandler::color ( ) const
virtual
virtual void makVrf::DtVrfShapeManipulationHandler::setExtendedLabels ( const std::map< int, DtString > &  )
virtual
virtual void makVrf::DtVrfShapeManipulationHandler::setLabel ( const std::string &  )
virtual

Sets label of item. Default is no-op.

Reimplemented from makVrf::DtVrfObjectManipulationHandlerBaseClass.

virtual std::string makVrf::DtVrfShapeManipulationHandler::label ( ) const
virtual
virtual void makVrf::DtVrfShapeManipulationHandler::setFormattingData ( const std::string &  )
virtual
virtual std::string makVrf::DtVrfShapeManipulationHandler::formattingData ( ) const
virtual
virtual int makVrf::DtVrfShapeManipulationHandler::arrowStyle ( ) const
virtual

Returns information about the current arrow settings from the visualizer.

virtual int makVrf::DtVrfShapeManipulationHandler::arrowHeadPlacement ( ) const
virtual
virtual int makVrf::DtVrfShapeManipulationHandler::arrowSize ( ) const
virtual
virtual bool makVrf::DtVrfShapeManipulationHandler::isArea ( ) const
virtual

Current creating type is area (box, circle, area, ellipse)

virtual bool makVrf::DtVrfShapeManipulationHandler::isRoute ( ) const
virtual

Current creating type is route.

virtual void makVrf::DtVrfShapeManipulationHandler::setFloor ( double  )
virtual

Valid only for areal objects that are volumetric, get/set floor/ceiling of area.

Note that any volumetric area, regardless of whether or not it has a floor or a ceiling will be displayed non-projected. If called on a non-areal object will have no effect. Values are in meters. Note that if the item being edited/created is a route, the meaning of floor and ceiling are different. In this case "floor" means the physical width of the route, and "ceiling" means the physical height

virtual double makVrf::DtVrfShapeManipulationHandler::floor ( ) const
virtual

Valid only for areal objects that are volumetric, get/set floor/ceiling of area.

Note that any volumetric area, regardless of whether or not it has a floor or a ceiling will be displayed non-projected. If called on a non-areal object will have no effect. Values are in meters. Note that if the item being edited/created is a route, the meaning of floor and ceiling are different. In this case "floor" means the physical width of the route, and "ceiling" means the physical height

virtual void makVrf::DtVrfShapeManipulationHandler::setCeiling ( double  )
virtual

Valid only for areal objects that are volumetric, get/set floor/ceiling of area.

Note that any volumetric area, regardless of whether or not it has a floor or a ceiling will be displayed non-projected. If called on a non-areal object will have no effect. Values are in meters. Note that if the item being edited/created is a route, the meaning of floor and ceiling are different. In this case "floor" means the physical width of the route, and "ceiling" means the physical height

virtual double makVrf::DtVrfShapeManipulationHandler::ceiling ( ) const
virtual

Valid only for areal objects that are volumetric, get/set floor/ceiling of area.

Note that any volumetric area, regardless of whether or not it has a floor or a ceiling will be displayed non-projected. If called on a non-areal object will have no effect. Values are in meters. Note that if the item being edited/created is a route, the meaning of floor and ceiling are different. In this case "floor" means the physical width of the route, and "ceiling" means the physical height

virtual double makVrf::DtVrfShapeManipulationHandler::orientation ( ) const
virtual

Returns orientation of object.

If a closed figure returns orientation from first to second point, else returns orientation from first to last point

virtual void makVrf::DtVrfShapeManipulationHandler::setOrientation ( double  )
virtual

Orients all the points of the object around the geometric center of the object by the given orientation.

virtual double makVrf::DtVrfShapeManipulationHandler::initialArrowSize ( bool  fixedWidthSizing,
double  initialSize 
) const
virtual

For a newly created object returns initial arrow size.

virtual void makVrf::DtVrfShapeManipulationHandler::setAllowHeadingChanges ( bool  )
virtual

Sets whether or not heading changes are allowed via the mouse/keyboard. Default is false.

virtual void makVrf::DtVrfShapeManipulationHandler::setLength ( double  )
virtual

Set fixed length of line from 0 to 1 point.

Reimplemented in makVrf::DtVrfBoxManipulationHandler.

virtual void makVrf::DtVrfShapeManipulationHandler::cancel ( )
virtual

Cancels any current work.

Reimplemented from makVrf::DtVrfObjectManipulationHandlerBaseClass.

virtual DtVector makVrf::DtVrfShapeManipulationHandler::centerOfMass ( ) const
virtual

Returns center of mass of all objects created (in geocentric)

Reimplemented from makVrf::DtVrfObjectManipulationHandlerBaseClass.

virtual void makVrf::DtVrfShapeManipulationHandler::updateOffsetsBasedOnMousePosition ( const DtVector centerOfMass,
const DtGeodeticCoord &  ,
bool  usImagePoints = false 
)
virtual

Reset objects based on new center.

Reimplemented from makVrf::DtVrfObjectManipulationHandlerBaseClass.

virtual void makVrf::DtVrfShapeManipulationHandler::postCreateInitialize ( DtVrfObjectFacadeInterface )
protectedvirtual
virtual bool makVrf::DtVrfShapeManipulationHandler::clampAtClosestPolygonOnPlacement ( ) const
protectedvirtual

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

Reimplemented from makVrf::DtVrfObjectManipulationHandlerBaseClass.

virtual void makVrf::DtVrfShapeManipulationHandler::calculateAnchorBasedOnMousePosition ( makVrv::DtChannel channel)
protectedvirtual
virtual void makVrf::DtVrfShapeManipulationHandler::editSelectedObjects ( const makVrv::DtUniqueID editId,
makVrv::DtChannel initiatingChannel,
double  waitTimeAfterComplete = 0.,
const makVrv::DtSelectionManager::IdSet editing = makVrv::DtSelectionManager::IdSet() 
)
protectedvirtual

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 from makVrf::DtVrfObjectManipulationHandlerBaseClass.

Reimplemented in makVrf::DtVrfVertexManipulationHandler< DtVrfBoxManipulationHandler >, makVrf::DtVrfVertexManipulationHandler< DtVrfShapeManipulationHandler >, makVrf::DtVrfVertexManipulationHandler< DtVrfCircleManipulationHandler >, and makVrf::DtVrfVertexManipulationHandler< DtVrfWeatherManipulationHandler >.

virtual void makVrf::DtVrfShapeManipulationHandler::slot_onEditComplete ( makVrv::DtUniqueID  id,
const DtVector location,
double  altAboveGround 
)
protectedvirtual
virtual void makVrf::DtVrfShapeManipulationHandler::initializeEventProcessor ( )
protectedvirtual
virtual DtVector makVrf::DtVrfShapeManipulationHandler::geometricCenter ( DtVrfObjectFacadeInterface ,
const std::vector< DtVector > &  v 
) const
protectedvirtual
virtual void makVrf::DtVrfShapeManipulationHandler::slot_onPlace ( makVrv::DtUniqueID  ,
const DtVector location,
double  altAboveGround 
)
protectedvirtual
virtual void makVrf::DtVrfShapeManipulationHandler::slot_onComplete ( bool  stopCreating)
protectedvirtual
virtual void makVrf::DtVrfShapeManipulationHandler::slot_onCancel ( bool  escPressed)
protectedvirtual
virtual void makVrf::DtVrfShapeManipulationHandler::slot_onCancelOrComplete ( bool  escPressed)
protectedvirtual
virtual void makVrf::DtVrfShapeManipulationHandler::slot_onLocationChanged ( const DtVector location,
double  altAboveGround 
)
protectedvirtual
virtual void makVrf::DtVrfShapeManipulationHandler::slot_onAltitudeChanged ( const DtVector location,
double  altitude 
)
protectedvirtual
virtual DtVrfObjectFacadeInterface* makVrf::DtVrfShapeManipulationHandler::createLocalRepresentation ( DtVrlinkSimulatedBaseStateView editStateView = 0)
protectedvirtual

returns true if successful, false otherwise

Implements makVrf::DtVrfObjectManipulationHandlerBaseClass.

virtual DtVector makVrf::DtVrfShapeManipulationHandler::addControlPoint ( int  index = -1)
protectedvirtual
virtual DtVrfObjectFacadeInterface* makVrf::DtVrfShapeManipulationHandler::createLocalRepresentation ( DtVrlinkSimulatedBaseStateView editStateView,
makVrv::DtUniqueID  sceneObjectId,
DtVrlinkSimulatedBaseStateView principalStateView 
)
protectedvirtual
virtual void makVrf::DtVrfShapeManipulationHandler::moveSelectedPoint ( const DtVector location,
double  altAboveGround 
)
protectedvirtual
virtual bool makVrf::DtVrfShapeManipulationHandler::isArea ( const DtEntityType &  type) const
protectedvirtual
virtual bool makVrf::DtVrfShapeManipulationHandler::isRoute ( const DtEntityType &  type) const
protectedvirtual
virtual bool makVrf::DtVrfShapeManipulationHandler::isObstacle ( const DtEntityType &  type) const
protectedvirtual
virtual bool makVrf::DtVrfShapeManipulationHandler::isPhaseline ( const DtEntityType &  type) const
protectedvirtual
virtual DtEnvironmentalCreationData makVrf::DtVrfShapeManipulationHandler::environmentalCreationData ( const std::string &  name,
const DtEntityType &  ,
int  force 
) const
protectedvirtual
virtual void makVrf::DtVrfShapeManipulationHandler::updateLocationOffset ( const DtVector local,
DtEnvironmentalFacadeCollection env,
int  pos 
)
protectedvirtual
virtual bool makVrf::DtVrfShapeManipulationHandler::modifyVrfObject ( DtVrfObjectFacadeInterface objectImage)
protectedvirtual

Called for each object to be modified.

Reimplemented from makVrf::DtVrfObjectManipulationHandlerBaseClass.

Reimplemented in makVrf::DtVrfIndirectArtilleryManipulationHandler.

virtual DtVector makVrf::DtVrfShapeManipulationHandler::setAltitudeToOrigin ( const DtVector ) const
protectedvirtual

Sets the altitude of the supplied point (local) to the same altitude as the origin and returns that new point.

virtual DtVector makVrf::DtVrfShapeManipulationHandler::rotatedPoint ( const DtVector origin,
double  x,
double  heading 
) const
protectedvirtual

Attempts to rotate point until exact distance is retrieved.

virtual DtVector makVrf::DtVrfShapeManipulationHandler::rotatePoint ( const DtVector origin,
double  x,
double  heading 
) const
protectedvirtual

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)

virtual bool makVrf::DtVrfShapeManipulationHandler::alwaysRecalculateGeometry ( ) const
protectedvirtual
virtual DtVector makVrf::DtVrfShapeManipulationHandler::rotatePointInternal ( const DtVector origin,
double  x,
double  heading 
) const
protectedvirtual
virtual void makVrf::DtVrfShapeManipulationHandler::updateOffsetsBasedOnMousePosition ( )
protectedvirtual

Will go through all objects and update their current origins based on the mouse position.

Reimplemented from makVrf::DtVrfObjectManipulationHandlerBaseClass.

virtual void makVrf::DtVrfShapeManipulationHandler::setupImagePointsUsingImageOffset ( DtEnvironmentalFacadeCollection ,
const std::vector< DtVector > &   
)
protectedvirtual

Member Data Documentation

boost::signal<void (const DtVector&, int)> makVrf::DtVrfShapeManipulationHandler::signal_pointLocationChanged
boost::signal<void ()> makVrf::DtVrfShapeManipulationHandler::signal_pointSamplingRateChanged
boost::signal<void (double)> makVrf::DtVrfShapeManipulationHandler::signal_floorChanged
boost::signal<void (double)> makVrf::DtVrfShapeManipulationHandler::signal_ceilingChanged
int makVrf::DtVrfShapeManipulationHandler::myMaxVertices
protected
int makVrf::DtVrfShapeManipulationHandler::myMinVertices
protected
DtGeodeticCoord makVrf::DtVrfShapeManipulationHandler::myLastPosition
protected
bool makVrf::DtVrfShapeManipulationHandler::myRecentered
protected
DtVector makVrf::DtVrfShapeManipulationHandler::myRecenteredPos
protected
int makVrf::DtVrfShapeManipulationHandler::myPointSamplingRate
protected
std::vector<DtVector> makVrf::DtVrfShapeManipulationHandler::myControlPoints
protected

Used to refactor points for sampling rate change.

bool makVrf::DtVrfShapeManipulationHandler::myShapeVerticesDisabled
protected

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

Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)