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 | Protected Member Functions
makVrf::DtVrfAggregateCopyPasteHandler Class Reference
Inheritance diagram for makVrf::DtVrfAggregateCopyPasteHandler:
Inheritance graph
[legend]

Public Member Functions

 DtVrfAggregateCopyPasteHandler (makVrv::DtDe &)
 
virtual ~DtVrfAggregateCopyPasteHandler ()
 
void addObjectPasting (DtCopyObject *o)
 
void centerPasteObjects (const DtGeodeticCoord &, const DtGeodeticCoord &)
 
- Public Member Functions inherited from makVrf::DtVrfCopyPasteHandler
 DtVrfCopyPasteHandler (makVrv::DtDe &)
 
virtual ~DtVrfCopyPasteHandler ()
 
const DtPasteDatapasteData () const
 Returns the paste data currently in paste buffer. More...
 
virtual void clearPasteData ()
 Clears out paste data and emits signal that system can no longer paste. More...
 
virtual void copy (const makVrv::DtUniqueID &id)
 Finds out information about and copies data for the specifie item. More...
 
virtual bool canCopy () const
 
int numCopying () const
 
virtual bool canPaste () const
 
virtual void stop ()
 Stops any pending copies or pasted and sends out signal for each one stopped, then, final stop signal with 0 as the parameter for what is being cancelled. More...
 
virtual void cancelPaste ()
 Cancels paste operation. More...
 
virtual void cancelled (DtCopyObject *)
 Called when a copy is cancelled. More...
 
virtual void copied (DtCopyObject *, const std::string &)
 Called when object has successfully copied. More...
 
virtual void tick ()
 Called when de ticks, delete any objects in the myToDelete buffer. More...
 
virtual void copyOperationPending (DtCopyObject *, const std::string &)
 Reemits copy operation pending signal. More...
 
virtual DtCopyObjectcreateCopyObject (const makVrv::DtElementEntry &) const
 Creates a copy object based on object state (calls createCopyObject(state.type())) More...
 
void setPasteFlags (int f)
 
int pasteFlags () const
 
bool hasObjectsToPaste () const
 
virtual void setPreserveOffsets (bool)
 If true preserve the offsets from a potential aggregate this handler might be part of. Default is false (i.e. respect mouse placement) More...
 
virtual bool preserveOffsets () const
 
virtual void paste (const DtVector &at=DtVector(), int flags=DtCopyObject::DtAllPasteFlags)
 Starts paste operation by creating copy objects that will represent information stored in the paste buffer. More...
 
bool pasting () const
 Returns true if currently pasting. More...
 
void setMaximumToProcessInPastePass (int i)
 Maximum number of objects to try and paste in a single pass. More...
 
int maximumToProcessInPastePass () const
 
virtual void cleanup ()
 Cleanup objects to delete. More...
 
virtual DtCopyObjectcreateObjectFromPasteData (int type, const std::string &buffer) const
 Creates a copy object and recreates from the paste buffer. More...
 
virtual void queueObjectsToPaste ()
 Queues up objects for paste as to the maximum number of objects to paste at a single time. More...
 
virtual void slot_onPaste ()
 Pastes all objects centered around the last location changed to. More...
 
const DtObjectsPastingobjectsPasting () const
 
virtual void setPasteData (const std::string &name, int type, const std::string &pasteBuffer)
 
virtual void registerName (const DtString &)
 
virtual bool nameIsRegistered (const DtString &) const
 

Protected Member Functions

virtual DtCopyObjectcreateCopyObject (int) const
 Creates a copy object based on object state. Returns 0 if no creator registered. More...
 
- Protected Member Functions inherited from makVrf::DtVrfCopyPasteHandler
virtual void pasted (DtCopyObject *)
 Called when paste operation has completed for this object. More...
 
virtual void removeFromCopying (DtCopyObject *)
 Removes an object from being copied and places it on the toDelete list. More...
 
virtual void cleanupEventProcessor ()
 Called to cleanup the event processor. More...
 
virtual void slot_onLocationChanged (const DtVector &, double)
 Called for each mouse move, will move all facades to be relative to this new location. More...
 
virtual void pasteOperationPending (DtCopyObject *, const std::string &)
 Called when a paste operation is pending, emits signal_pasteOperationPending. More...
 
virtual void pasteCancelled (DtCopyObject *)
 Called when a paste operation is cancelled. More...
 
virtual void removeFromBeingPasted (DtCopyObject *)
 Called from pasted and pasteCancelled, will remove object from being pasted and signal if all paste operations are complete. More...
 

Additional Inherited Members

- Public Types inherited from makVrf::DtVrfCopyPasteHandler
typedef std::pair< std::string,
int
DtPasteInformation
 
typedef std::map< std::string,
DtPasteInformation
DtPasteData
 
typedef std::map< DtCopyObject
*, int
DtObjectsCopying
 
typedef std::vector
< DtCopyObject * > 
DtObjectsDeleting
 
typedef std::vector
< DtCopyObject * > 
DtObjectsPasting
 
- Public Attributes inherited from makVrf::DtVrfCopyPasteHandler
boost::signals2::signal< void(bool)> signal_hasPasteData
 Emitted when state of whether or not can paste has changed. More...
 
boost::signals2::signal< void()> signal_stopped
 
boost::signals2::signal< void(DtCopyObject *)> signal_copyCancelled
 
boost::signals2::signal< void(DtCopyObject
*, const std::string &)> 
signal_copied
 
boost::signals2::signal< void()> signal_copyComplete
 
boost::signals2::signal< void(DtCopyObject
*, const std::string &)> 
signal_copyOperationPending
 
boost::signals2::signal< void()> signal_pasting
 
boost::signals2::signal< void()> signal_pasteComplete
 
boost::signals2::signal< void(DtCopyObject *)> signal_pasted
 
boost::signals2::signal< void(DtCopyObject *)> signal_pasteCancelled
 
boost::signals2::signal< void(DtCopyObject
*, const std::string &)> 
signal_pasteOperationPending
 
- Protected Attributes inherited from makVrf::DtVrfCopyPasteHandler
makVrv::DtDemyDe
 
DtPasteData myPasteData
 Buffer is a map of object name to data. More...
 
DtObjectsCopying myObjectsCopying
 
DtObjectsPasting myObjectsPasting
 
DtObjectsPasting myObjectsBeingPasted
 
DtObjectsPasting myObjectsToPaste
 
DtObjectsDeleting myToDelete
 
DtVrfObjectManipulationEventProcessormyEventProcessor
 
int myMaximumToProcessInPastePass
 
int myPasteFlags
 
bool myQueueing
 
DtGeodeticCoord myOrigin
 
DtReferenceEllipsoid myReferenceEllipsoid
 
bool myPreserveOffsets
 
std::set< DtStringmyRegisteredNames
 

Constructor & Destructor Documentation

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

Member Function Documentation

void makVrf::DtVrfAggregateCopyPasteHandler::addObjectPasting ( DtCopyObject o)
inline
void makVrf::DtVrfAggregateCopyPasteHandler::centerPasteObjects ( const DtGeodeticCoord &  ,
const DtGeodeticCoord &   
)
virtual DtCopyObject* makVrf::DtVrfAggregateCopyPasteHandler::createCopyObject ( int  ) const
protectedvirtual

Creates a copy object based on object state. Returns 0 if no creator registered.

Implements makVrf::DtVrfCopyPasteHandler.


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)