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

The Master DtVrfCopyPasteManager. More...

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

Public Member Functions

 DtVrfCopyPasteManager (makVrv::DtDe &)
virtual ~DtVrfCopyPasteManager ()
virtual void addCopyObject (int, DtCopyObjectCreator *)
 Adds the class that will be used to copy the object of the specified type to the given stream.
virtual void copy (const makVrv::DtSelectionManager::IdSet &)
 Copies all objects to a selection buffer.
virtual DtCopyObjectcreateCopyObject (int) const
 Creates a copy object based on object state. Returns 0 if no creator registered.
- Public Member Functions inherited from makVrf::DtVrfCopyPasteHandler
 DtVrfCopyPasteHandler (makVrv::DtDe &)
virtual ~DtVrfCopyPasteHandler ()
const DtPasteDatapasteData () const
 Returns the paste data currently in paste buffer.
virtual void clearPasteData ()
 Clears out paste data and emits signal that system can no longer paste.
virtual void copy (const makVrv::DtUniqueID &id)
 Finds out information about and copies data for the specifie item.
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.
virtual void cancelPaste ()
 Cancels paste operation.
virtual void cancelled (DtCopyObject *)
 Called when a copy is cancelled.
virtual void copied (DtCopyObject *, const std::string &)
 Called when object has successfully copied.
virtual void tick ()
 Called when de ticks, delete any objects in the myToDelete buffer.
virtual void copyOperationPending (DtCopyObject *, const std::string &)
 Reemits copy operation pending signal.
virtual DtCopyObjectcreateCopyObject (const makVrv::DtElementEntry &) const
 Creates a copy object based on object state (calls createCopyObject(state.type()))
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)
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.
bool pasting () const
 Returns true if currently pasting.
void setMaximumToProcessInPastePass (int i)
 Maximum number of objects to try and paste in a single pass.
int maximumToProcessInPastePass () const
virtual void cleanup ()
 Cleanup objects to delete.
virtual DtCopyObjectcreateObjectFromPasteData (int type, const std::string &buffer) const
 Creates a copy object and recreates from the paste buffer.
virtual void queueObjectsToPaste ()
 Queues up objects for paste as to the maximum number of objects to paste at a single time.
virtual void slot_onPaste ()
 Pastes all objects centered around the last location changed to.
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
- Public Member Functions inherited from makVrv::DtVirtualBaseClass
 DtVirtualBaseClass ()
 Do nothing constructor.
virtual ~DtVirtualBaseClass ()
 Virtual do nothing destructor.

Static Public Member Functions

static DtVrfCopyPasteManagerinstance (makVrv::DtDe &de)
 Returns instance of the messager.

Protected Attributes

DtCopyObjectMap myCopyObjects
- Protected Attributes inherited from makVrf::DtVrfCopyPasteHandler
makVrv::DtDemyDe
DtPasteData myPasteData
 Buffer is a map of object name to data.
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

Private Types

typedef std::map< int,
DtCopyObjectCreator * > 
DtCopyObjectMap

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::signal< void(bool)> signal_hasPasteData
 Emitted when state of whether or not can paste has changed.
boost::signal< void()> signal_stopped
boost::signal< void(DtCopyObject *)> signal_copyCancelled
boost::signal< void(DtCopyObject
*, const std::string &)> 
signal_copied
boost::signal< void()> signal_copyComplete
boost::signal< void(DtCopyObject
*, const std::string &)> 
signal_copyOperationPending
boost::signal< void()> signal_pasting
boost::signal< void()> signal_pasteComplete
boost::signal< void(DtCopyObject *)> signal_pasted
boost::signal< void(DtCopyObject *)> signal_pasteCancelled
boost::signal< void(DtCopyObject
*, const std::string &)> 
signal_pasteOperationPending
- Protected Member Functions inherited from makVrf::DtVrfCopyPasteHandler
virtual void pasted (DtCopyObject *)
 Called when paste operation has completed for this object.
virtual void removeFromCopying (DtCopyObject *)
 Removes an object from being copied and places it on the toDelete list.
virtual void cleanupEventProcessor ()
 Called to cleanup the event processor.
virtual void slot_onLocationChanged (const DtVector &, double)
 Called for each mouse move, will move all facades to be relative to this new location.
virtual void pasteOperationPending (DtCopyObject *, const std::string &)
 Called when a paste operation is pending, emits signal_pasteOperationPending.
virtual void pasteCancelled (DtCopyObject *)
 Called when a paste operation is cancelled.
virtual void removeFromBeingPasted (DtCopyObject *)
 Called from pasted and pasteCancelled, will remove object from being pasted and signal if all paste operations are complete.

Detailed Description

The Master DtVrfCopyPasteManager.

Member Typedef Documentation

Constructor & Destructor Documentation

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

Member Function Documentation

static DtVrfCopyPasteManager& makVrf::DtVrfCopyPasteManager::instance ( makVrv::DtDe de)
static

Returns instance of the messager.

virtual void makVrf::DtVrfCopyPasteManager::addCopyObject ( int  ,
DtCopyObjectCreator  
)
virtual

Adds the class that will be used to copy the object of the specified type to the given stream.

If an object already exists for this entry, replaces while deleting the original. All memory allocated for the copy objects will be managed by this class

virtual void makVrf::DtVrfCopyPasteManager::copy ( const makVrv::DtSelectionManager::IdSet )
virtual

Copies all objects to a selection buffer.

Emits signals during copying and when the items are ready to be pasted

virtual DtCopyObject* makVrf::DtVrfCopyPasteManager::createCopyObject ( int  ) const
virtual

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

Implements makVrf::DtVrfCopyPasteHandler.

Member Data Documentation

DtCopyObjectMap makVrf::DtVrfCopyPasteManager::myCopyObjects
protected

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

Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)