Public Member Functions |
| | DtLocalObjectManager (makVrv::DtDe &de) |
| virtual | ~DtLocalObjectManager () |
| virtual bool | isCreating () const |
| | Returns true if the object manager is in creation mode.
|
| virtual void | tacticalGraphicsVertexSelected (const makVrv::DtUniqueID &selected, const makVrv::DtUniqueID &parentElementID) |
| | Called when a vertex is selected. Selects in local representation.
|
| virtual void | tacticalGraphicsVertexDeselected (const makVrv::DtUniqueID &deselected, const makVrv::DtUniqueID &parent) |
| | Called when a vertex is deselected. Deselects in local representation.
|
| virtual void | slot_onCurrentSelectionChanged (const makVrv::DtSelectionManager::IdSet &selected, const makVrv::DtSelectionManager::IdSet &deselected) |
| | Called when current selection changes. If selection contains a local object, selects that.
|
virtual
DtEnvironmentalFacadeCollection * | create (const DtVrlinkSimulatedEnvironmentProcess &) |
| | Create a tactical graphic from the supplied state.
|
virtual
DtEnvironmentalFacadeCollection * | create (const DtEntityType &t, const std::vector< DtVector > &localPoints, int force, const DtEnvironmentalCreationData &, int modelSet=-1, bool keepName=false) |
| | Create a tactical graphic of type t with name, on first of:
|
| virtual DtEntityFacadeCollection * | create (const makVrv::DtVrlinkSimulatedEntityState &, const std::string &overlayParent="") |
| | Create a tactical graphic from the supplied state.
|
| virtual DtEntityFacadeCollection * | create (const DtEntityCreationData &, int modelSet=-1, bool keepName=false) |
| | Create a entity of type t with name, on first of:
|
virtual const
makVrv::DtTacticalGraphicOverlay * | createOnLayer (const std::string &layerName="") |
| | Returns the layer to use for creating the local object.
|
| virtual void | completeStateUpdate (makVrv::DtUniqueID id) |
| | Called when editing of object is complete. Will update local representation.
|
| virtual void | setVisible (makVrv::DtUniqueID id, bool hide) |
| | Sets the specified local object to be shown or hidden.
|
| virtual bool | isLocal (makVrv::DtUniqueID id) const |
| | Determine whether we are looking at a stock or local object.
|
| virtual void | updateState (makVrv::DtUniqueID id) |
| virtual void | setEditable (makVrv::DtUniqueID id, bool) |
| | Sets to be editable.
|
| virtual bool | isEditable (makVrv::DtUniqueID id) const |
| | Ask the tactical graphic overlay manager for the status of the overlay if it is 'locked' it should not be editable.
|
| virtual bool | isMemberOfLayer (makVrv::DtUniqueID id, const std::string &layername) const |
| | return true if given graphic ID is member of layer
|
| virtual void | deleteLocal (makVrv::DtUniqueID id) |
| | Deletes the specified local object.
|
| virtual void | deleteAll () |
| | Deletes all local objects.
|
| virtual void | deleteAllFromLayer (const std::string &layername) |
| | Deletes all the objects on the specified layer.
|
| virtual void | update (makVrv::DtElementID id, const std::string *name=0, const std::vector< DtVector > &points=std::vector< DtVector >(), int *force=0, const std::string *overlay=0, const std::string *userData=0, const std::map< std::string, std::string > *extendedData=0, const std::map< int, DtString > *extendedLabels=0, double *newHeading=0, int *color=0, int *appearance=0, const std::string *label=0, bool forceUpdate=true) |
| | Call to update state data of specified object and update it so local object will also be changed.
|
| virtual DtVector | getVertexPosition (makVrv::DtElementID parent, makVrv::DtUniqueID vertexId) const |
| | Given an element id and a vertex id, return the position of that vertex.
|
| virtual void | create (const DtEntityType &t, int force) |
| | Creates an object interactively, meaning it will bring up the create dialog, and, once complete, will create a new representation in this manager.
|
| virtual bool | allSelectionIsLocal () const |
| | Return true if the entire selection only contains local objects.
|
| virtual void | setCanCreateLocalObjects (bool) |
| | Set to false to disallow creation of local objects. Default is true.
|
| virtual bool | canCreateLocalObjects () const |
| | Return true if can create local objects instead of published ones via the create process. Default is true.
|
| virtual void | save (const std::string &) |
| | Saves contents of local object manager to file.
|
| virtual bool | load (const std::string &, bool removeAll=true) |
| | Loads and creates objects in file into local object manager. Deletes all local objects first before restoring.
|
| virtual int | numberOfLocalObjects () const |
| | Returns number of local objects.
|
| virtual double | groundHeight (const DtVector &lp, DtVector *clampedPoint=0, const std::vector< makVrv::DtUniqueID > &ignore=std::vector< makVrv::DtUniqueID >()) const |
| | Return the height of the ground at the current point.
|
| virtual DtVector | clampToGround (const DtVector &, const std::vector< makVrv::DtUniqueID > &ignore=std::vector< makVrv::DtUniqueID >(), bool useHighestLOD=true, bool ignoreDynamicOcean=false, bool useHighestPolygon=true) const |
| | Return supplied local position as clamped to ground.
|
| virtual DtGeodeticCoord | clampToGround (const DtGeodeticCoord &, const std::vector< makVrv::DtUniqueID > &ignore=std::vector< makVrv::DtUniqueID >(), bool useHighestLOD=true, bool ignoreDynamicOcean=false) const |
| | Return supplied geocentric position as a geocentric clamped to ground position.
|
| | DtVirtualBaseClass () |
| | Do nothing constructor.
|
| virtual | ~DtVirtualBaseClass () |
| | Virtual do nothing destructor.
|
Protected Member Functions |
| virtual void | slot_elementAttributeChangeRequested (makVrv::DtUniqueID id, makVrv::DtUniqueID parentId, DtBoost::shared_ptr< const makVrv::DtElementAttribute > atr) |
| | Called when an element attribute has changed, handle if a local object.
|
| virtual void | handleElementAttributeChanged (makVrv::DtUniqueID id, const makVrv::DtElementAttribute *attr) |
| virtual void | slot_onStateViewUpdated (makVrv::DtStateView< makVrv::DtVrlinkSimulatedBaseState > *) |
| | Called when state view is updated, will update local object.
|
| virtual void | completeStateViewUpdated (makVrv::DtStateView< makVrv::DtVrlinkSimulatedBaseState > *, bool forceIfHidden=false) |
| | Called in pre-tick from a connection made in slot_onStateViewUpdated.
|
| virtual void | update (DtEnvironmentalFacadeCollection *, const DtVrlinkSimulatedEnvironmentProcess *) |
| | Updates facades based on state.
|
| virtual void | update (DtEntityFacadeCollection *, const makVrv::DtVrlinkSimulatedEntityState *) |
| virtual void | finalizeObjectCreation (const DtVrfObjectManipulationHandlerBaseClass::ObjectManipulationData &) |
| | Called when interactive local object creation has been stopped or created.
|
| virtual void | slot_stoppedObjectCreation () |
| virtual std::string | generateUniqueName (const std::string &base, bool addNumberToBegin=false) const |
| template<class Archive > |
| void | serialize (Archive &ar, const unsigned int version) |
| | When the class Archive corresponds to an output archive, the & operator is defined similar to <<.
|
| virtual void | write (boost::archive::xml_oarchive &out) |
| virtual void | read (boost::archive::xml_iarchive &in) |
The DtLocalObjectManager is the interface to be used when creating objects that are not to be published as part of the simulation.
This manager will maintain all listeners and visualizers that are used for these objects.
- Examples
-