![]() |
VR-Forces 4.5 Class Documentation
|
Class used to create shape facades for paste. More...

Public Member Functions | |
| DtEnvironmentalShapeCopyObject (makVrv::DtDe &) | |
| virtual | ~DtEnvironmentalShapeCopyObject () |
| virtual void | createFacade () |
| Creates the facade that will be used to display a temp item during paste operation. | |
| virtual void | setOrigin (const DtGeodeticCoord &) |
| Should shift (rather than absolute location set) points by amount specified. | |
| virtual DtVector | origin () const |
| If facade is available, returns the origin of the facade, else returns center(). Returns in local coordinates. | |
Public Member Functions inherited from makVrf::DtEnvironmentalCopyObject | |
| DtEnvironmentalCopyObject (makVrv::DtDe &) | |
| virtual | ~DtEnvironmentalCopyObject () |
| virtual DtGeodeticCoord | calculateCenter () const |
| Returns the center of the object in geocentric coordinates. | |
| DtEnvironmentalFacadeCollection * | facade () |
| virtual DtVrfObjectFacadeInterface * | facade () const |
| Returns the facade. | |
Public Member Functions inherited from makVrf::DtCopyObject | |
| DtCopyObject (makVrv::DtDe &) | |
| virtual | ~DtCopyObject () |
| virtual void | read (const std::string &buf) |
| Reads data from the buffer. | |
| virtual void | cancel () |
| Cancels copy. Emits signal when cancel is complete. | |
| const std::string & | name () const |
| const DtUUID & | uuid () const |
| virtual std::string | copyPendingMessage () const |
| Message that is describing what this object is waiting for as far as copying goes. | |
| virtual std::string | pastePendingMessage () const |
| Message that is describing what this object is waiting for as far as pasting goes. | |
| virtual void | setAltitudeClampType (DtAltitudeClampType) |
| Sets the clamp type to used when calculating localLocation. Default is above terrain. | |
| DtAltitudeClampType | altitudeClampType () const |
| void | setType (int t) |
| int | type () const |
| void | setBuffer (const std::string &b) |
| const std::string & | buffer () const |
| virtual void | paste (const DtVector &, int flags=DtAllPasteFlags) |
| Pastes object given the current information. | |
| virtual DtGeodeticCoord | center () const |
| Returns the center of the object in geocentric coordinates. | |
| virtual DtVector | localCenter () const |
| virtual DtVector | pasteOrigin () const |
| Origin at which to paste the object. Will take into account offsets (if they exist) | |
| virtual void | setGeometricCenter (const DtGeodeticCoord &) |
| Sets the center of all objects being painted (in geocentric as per center() call). | |
| const DtGeodeticCoord & | geometricCenter () const |
| const makVrv::DtVrlinkSimulatedBaseState * | readableStateData () const |
| virtual bool | updateDataBeforeCopy () const |
| Returns true as to whether or not to force a data update before copy. Default is false. | |
| virtual void | setUpdateDataBeforeCopy (bool) |
Protected Member Functions | |
| virtual void | createObject (const DtVector ¢er) |
| Creates the object locally or on the network. | |
| virtual void | setupOffsets (const DtGeodeticCoord &) |
| Sets up offsets from geometric center. | |
| virtual bool | preserveOffsets () const |
| Returns true if offsets from origin should be preserved on paste. Default is false. | |
| virtual void | copy (makVrv::DtSimEntry *simEntry) |
| Starts copy process. Subclasses need to implement specific copy procedures. | |
Protected Member Functions inherited from makVrf::DtEnvironmentalCopyObject | |
| virtual void | write (std::ostringstream &str, const makVrv::DtVrlinkSimulatedBaseState *data, makVrv::DtUniqueID id) |
| Writes data to stream. | |
| virtual void | write (std::ostringstream &str, const DtVrlinkSimulatedEnvironmentProcess *data, makVrv::DtUniqueID id) |
| virtual void | read (std::istringstream &str, makVrv::DtVrlinkSimulatedBaseState *data) |
| Reads data from stream. | |
| virtual void | read (std::istringstream &str, DtVrlinkSimulatedEnvironmentProcess *data) |
| virtual makVrv::DtVrlinkSimulatedBaseState * | createReadableStateData () const |
Protected Member Functions inherited from makVrf::DtCopyObject | |
| virtual void | write (std::ostringstream &str, const DtVrfObjectDataState *data) |
| Writes vrf object data state. | |
| virtual DtVrfObjectDataState * | createReadableObjectStateData () const |
| Creates state data that will be used to read into a readable buffer. | |
| virtual void | read (std::istringstream &str, DtVrfObjectDataState *data) |
| Reads vrf object data state. | |
| virtual void | checkCopyComplete () |
| Checks whether or not the copy is complete, and, if it is, calls copyComplet() | |
| virtual bool | copyOperationsPending () const |
| Return true if copy operations are complete, else false will signal that there are other operations yet to be done. | |
| virtual void | copyComplete () |
| Sends copied message with resultant copied string. | |
| virtual bool | cancelComplete () const |
| Returns true if cancel is complete. | |
| virtual void | readComplete (std::istringstream &str) |
| Called when reading of buffer for object is complete. | |
| virtual void | checkPasteComplete () |
| Checks to see if paste operation is complete. | |
| virtual bool | pasteComplete () const |
| Returns true if paste operation is complete. Default is true. | |
| virtual int | generateRequestId () |
| Generates a request id to match our request. | |
| virtual double | groundHeight (const DtVector ¤tLocal) const |
| Returns the height at the given local position. | |
| virtual void | slot_onStateViewUpdated (DtVrlinkSimulatedBaseStateView *state, makVrv::DtSimEntry *simEntry) |
| virtual DtVector | offsetLocation (int, const DtVector &loc) const |
| Returns the geocentric location of the point at offset location index offset by geocentric loc. | |
| virtual DtGeodeticCoord | calculateOffsetPoint (const DtGeodeticCoord &start, const DtGeodeticCoord &end, double &altAboveTerrain, double &altAboveSeaLevel) const |
| Calculates an offset point based on the start and end positions. | |
| virtual DtVector | localLocation (const DtGeodeticCoord &, int) const |
| Given an origin and an index, return local location as an offset from that origin. | |
Protected Attributes | |
| DtVector | myPosition |
Protected Attributes inherited from makVrf::DtEnvironmentalCopyObject | |
| DtEnvironmentalFacadeCollection * | myFacade |
| bool | myIsWeather |
| DtChangeWeatherCommand | myWeatherCommand |
Protected Attributes inherited from makVrf::DtCopyObject | |
| makVrv::DtDe & | myDe |
| std::ostringstream | myOutput |
| std::string | myName |
| int | myPasteFlags |
| DtVrfObjectDataState * | myReadableObjectStateData |
| makVrv::DtVrlinkSimulatedBaseState * | myReadableStateData |
| DtGeodeticCoord | myCenter |
| CopyOffsets | myOffsets |
| HeightOffsets | myAltitudeAboveTerrain |
| HeightOffsets | myAltitudeAboveSeaLevel |
| DtAltitudeClampType | myAltitudeClampType |
| DtReferenceEllipsoid | myReferenceEllipsoid |
| int | myType |
| std::string | myBuffer |
| DtGeodeticCoord | myGeometricCenter |
| bool | myIsLocal |
| bool | myUpdateDataBeforeCopy |
| DtUUID | myUUID |
Additional Inherited Members | |
Public Types inherited from makVrf::DtCopyObject | |
| enum | DtPasteFlags { DtPasteNewName = 0x00000001, DtPasteAppearance = 0x00000002, DtPasteHeading = 0x00000004, DtPasteEngagement = 0x00000008, DtPastePlan = 0x00000010, DtPasteAboveSeaLevel = 0x00000020, DtPasteAboveTerrain = 0x00000040, DtPasteFormation = 0x00000080, DtPasteStateProperties = 0x00000100, DtAllPasteFlags } |
Public Attributes inherited from makVrf::DtCopyObject | |
| boost::signal< void(DtCopyObject *)> | signal_copyCancelled |
| boost::signal< void(DtCopyObject *, const std::string &)> | signal_copied |
| boost::signal< void(DtCopyObject *, const std::string &)> | signal_copyOperationPending |
| boost::signal< void(DtCopyObject *)> | signal_pasted |
| boost::signal< void(DtCopyObject *, const std::string &)> | signal_pasteOperationPending |
| boost::signal< void(DtCopyObject *)> | signal_pasteCancelled |
Protected Types inherited from makVrf::DtCopyObject | |
| typedef std::vector< double > | HeightOffsets |
Class used to create shape facades for paste.
| makVrf::DtEnvironmentalShapeCopyObject::DtEnvironmentalShapeCopyObject | ( | makVrv::DtDe & | ) |
|
virtual |
|
virtual |
Creates the facade that will be used to display a temp item during paste operation.
Reimplemented from makVrf::DtCopyObject.
|
virtual |
Should shift (rather than absolute location set) points by amount specified.
Reimplemented from makVrf::DtCopyObject.
|
virtual |
If facade is available, returns the origin of the facade, else returns center(). Returns in local coordinates.
Reimplemented from makVrf::DtCopyObject.
|
protectedvirtual |
Creates the object locally or on the network.
Default implementation does nothing. Vector is supplied in geocentric coordinates
Reimplemented from makVrf::DtCopyObject.
|
protectedvirtual |
Sets up offsets from geometric center.
Default adds one offset from center() of object
Reimplemented from makVrf::DtCopyObject.
|
protectedvirtual |
Returns true if offsets from origin should be preserved on paste. Default is false.
Reimplemented from makVrf::DtCopyObject.
|
protectedvirtual |
Starts copy process. Subclasses need to implement specific copy procedures.
Reimplemented from makVrf::DtCopyObject.
|
protected |