class ManipStrategy : public CAVERNmisc_subject_c

Abstract manipulation strategy class

Inheritance:


Public Methods

ManipStrategy()
constructor.
virtual ~ManipStrategy()
destructor.
inline void setDCS( pfNetDCS *aDCS )
Sets the DCS being manipulated by the strategy
inline void setParent( pfGroup *aParent )
Sets the parent node
virtual void eval()
Pure virtual evaluation of the strategy

Protected Fields

pfGroup* parent
parent of the node to be affected.
pfNetDCS* dcs
references to the netDCS

Documentation

Abstract manipulation strategy class. This abstract class serves to provide the base interface used by the pfMCS class to perform manipulations on a coordinate system. It serves to create the interface used by implemented strategies.

See the CAVERN_moveManipStrategy and CAVERN_rotScaleManipStrategy classes as example implementations of subclasses.

ManipStrategy()
constructor.

virtual ~ManipStrategy()
destructor.

inline void setDCS( pfNetDCS *aDCS )
Sets the DCS being manipulated by the strategy. When the manipulator is attached to the node, it will call this function to ensure the strategy has its own reference to the node being modified. The programmer need not call this function manually.
Parameters:
aDCS - DCS which will be affected by this strategy

inline void setParent( pfGroup *aParent )
Sets the parent node. When the manipulator is attached to the node, it will call this function to ensure the strategy has its own reference to the parent of the modified node. The programmer need not call this function manually. It can be used to help create graphical indicators for manipulation.
Parameters:
aParent - parent node of the manipuled DCS

virtual void eval()
Pure virtual evaluation of the strategy. Any implemented subclass must specify the algorithm used to modify the node to which the MCS has been attached.

pfGroup* parent
parent of the node to be affected.

pfNetDCS* dcs
references to the netDCS


Direct child classes:
CAVERN_rotScaleManipStrategy
CAVERN_moveManipStrategy
Author:
Chris Scharver, Electronic Visualization Laboratory

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de