class CAVERN_rotScaleManipStrategy : public ManipStrategy Rotation and scaling manipulation strategy
Rotation and scaling manipulation strategy.. This strategy provides and example of combining two operations into a single strategy. Rotation and scaling are both available in this implementation. Each operation is activated by a separate button on the pointing device.When the manipulator is attached to a node for transformation, the bounding sphere of that node is calculated using pfGetBound(). This sphere is used to offset the object so that all rotation and scale manipulations will be calculated about the bounding sphere's center. Currently (pf 2.3 SGI), this bounding sphere does not calculate correctly for complex scene graph heirarchies. The solution is to place items under the manipulator at the same level.
This object center is calculated using the Performer bounding sphere
of the node to which the manipulator has been attached. For some
reason, complex heirarchies do not seem to correctly calculate the
bounding sphere. The current workaround is to ensure that geometry
is placed at the same level directly under the node.
CAVERN_rotScaleManipStrategy( const int rotBttn, const int scaleBttn )
scaleBttn - button (1-16) to use for scale manipulation
virtual ~CAVERN_rotScaleManipStrategy()
virtual void eval()
void setButtons( const int rotBttn, const int scaleBttn )
scaleBttn - button (1-16) to use for scale manipulation
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