VR-Forces 4.0.4 Class Documentation
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]

List of all members.

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 createVrfObject ()
 Creates the scene object with the current handler settings for location, orientation, name, type, etc...A call to createObject must be made before using this function.
virtual void addControlPoint (const DtVector &location, int index=-1)
virtual void removeControlPoint (int index)
virtual void 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 setAltitudeAboveTerrain (int, double)
 Set altitude above terrain for the particular point.
virtual double altitudeAboveTerrain (int) const
virtual bool shapeAtMinimum () const
 Returns true if the shape has the minimum number of points to create.
virtual bool shapeAtMaximum () const
 Returns true if the shape has the minimum number of points to create.
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 localLocation (int index) const
 location + altitude
virtual std::vector
< DtGeodeticCoord > 
geodeticPositions () const
virtual void removePoint (int)
virtual double altitudeForAltitudeType (int) const
 Return the altitude given the current altitude type set. Goes to facade for information.
virtual void setForce (int)
 Sets the force of the object.

Public Attributes

boost::signal< void(const
DtVector &, int)> 
signal_pointLocationChanged

Protected Member Functions

virtual void editSelectedObjects (const makVrv::DtUniqueID &principalID, makVrv::DtChannel &initiatingChannel, double waitTimeAfterComplete=0.)
 Starts the process of object editing.
virtual void slot_onEditComplete (makVrv::DtUniqueID id, const DtVector &location, double altAboveGround)
virtual void initializeEventProcessor ()
virtual bool modifyVrfObjects ()
virtual void slot_onPlace (makVrv::DtUniqueID, const DtVector &location, double altAboveGround)
virtual void slot_onComplete ()
virtual void slot_onCancel ()
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 void modifyVrfObject (DtEnvironmentalFacadeCollection *objectImage)
 Called for each object to be modified.

Protected Attributes

int myMaxVertices
int myMinVertices
DtGeodeticCoord myLastPosition
bool myRecentered
DtVector myRecenteredPos

Detailed Description

The Master Scenario Settings Dialog.


Constructor & Destructor Documentation


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]

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.

Implements makVrf::DtVrfObjectManipulationHandlerBaseClass.

Reimplemented in makVrf::DtVrfIndirectFireManipulationHandler.

virtual void makVrf::DtVrfShapeManipulationHandler::addControlPoint ( const DtVector location,
int  index = -1 
) [virtual]
virtual void makVrf::DtVrfShapeManipulationHandler::removeControlPoint ( int  index) [virtual]
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::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]

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

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

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

Returns the number of vertices in the principal object.

virtual int makVrf::DtVrfShapeManipulationHandler::editingPoint ( ) const [virtual]
virtual DtGeodeticCoord makVrf::DtVrfShapeManipulationHandler::geodeticPosition ( int  ) const [virtual]
virtual DtVector makVrf::DtVrfShapeManipulationHandler::localLocation ( int  index) const [virtual]

location + altitude

virtual std::vector<DtGeodeticCoord> makVrf::DtVrfShapeManipulationHandler::geodeticPositions ( ) const [virtual]
virtual void makVrf::DtVrfShapeManipulationHandler::removePoint ( int  ) [virtual]
virtual double makVrf::DtVrfShapeManipulationHandler::altitudeForAltitudeType ( int  ) const [virtual]

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

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

Sets the force of the object.

Reimplemented from makVrf::DtVrfObjectManipulationHandlerBaseClass.

virtual void makVrf::DtVrfShapeManipulationHandler::editSelectedObjects ( const makVrv::DtUniqueID editId,
makVrv::DtChannel initiatingChannel,
double  waitTimeAfterComplete = 0. 
) [protected, virtual]

Starts the process of object editing.

Wait time after complete is how long to "wait" until showing hidden objects. This is to account for a bit of time taken to process result from back-end and prevent possible "jump" of object on move.

Reimplemented from makVrf::DtVrfObjectManipulationHandlerBaseClass.

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

virtual void makVrf::DtVrfShapeManipulationHandler::slot_onEditComplete ( makVrv::DtUniqueID  id,
const DtVector location,
double  altAboveGround 
) [protected, virtual]
virtual void makVrf::DtVrfShapeManipulationHandler::slot_onPlace ( makVrv::DtUniqueID  ,
const DtVector location,
double  altAboveGround 
) [protected, virtual]
virtual void makVrf::DtVrfShapeManipulationHandler::slot_onComplete ( ) [protected, virtual]
virtual void makVrf::DtVrfShapeManipulationHandler::slot_onCancel ( ) [protected, virtual]
virtual void makVrf::DtVrfShapeManipulationHandler::slot_onLocationChanged ( const DtVector location,
double  altAboveGround 
) [protected, virtual]
virtual void makVrf::DtVrfShapeManipulationHandler::slot_onAltitudeChanged ( const DtVector location,
double  altitude 
) [protected, virtual]

returns true if successful, false otherwise

Implements makVrf::DtVrfObjectManipulationHandlerBaseClass.

virtual DtVector makVrf::DtVrfShapeManipulationHandler::addControlPoint ( int  index = -1) [protected, virtual]
virtual void makVrf::DtVrfShapeManipulationHandler::moveSelectedPoint ( const DtVector location,
double  altAboveGround 
) [protected, virtual]
virtual bool makVrf::DtVrfShapeManipulationHandler::isArea ( const DtEntityType &  type) const [protected, virtual]
virtual bool makVrf::DtVrfShapeManipulationHandler::isRoute ( const DtEntityType &  type) const [protected, virtual]
virtual bool makVrf::DtVrfShapeManipulationHandler::isObstacle ( const DtEntityType &  type) const [protected, virtual]
virtual bool makVrf::DtVrfShapeManipulationHandler::isPhaseline ( const DtEntityType &  type) const [protected, virtual]
virtual DtEnvironmentalCreationData makVrf::DtVrfShapeManipulationHandler::environmentalCreationData ( const std::string &  name,
const DtEntityType &  ,
int  force 
) const [protected, virtual]
virtual void makVrf::DtVrfShapeManipulationHandler::updateLocationOffset ( const DtVector local,
DtEnvironmentalFacadeCollection env,
int  pos 
) [protected, virtual]

Called for each object to be modified.

Reimplemented in makVrf::DtVrfIndirectFireManipulationHandler.


Member Data Documentation


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

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)