All Frameworks Class Hierarchy This Framework Previous Next Indexes
VisualizationBase Class CAT2DManipulator
System.IUnknown
|
+---System.IDispatch
|
+---System.CATBaseUnknown
|
+---System.CATEventSubscriber
|
+---System.CATCommand
|
+---VisualizationBase.CATManipulator
|
+---CAT2DManipulator
Usage: you must use this class as is. You should never derive it.
public class CAT2DManipulator
Class to manipulate 3D representations
This object adds 2D specific behaviors to the CATManipulator.
Constructor and Destructor Index
- o
CAT2DManipulator(CATCommand*,CATString&,CAT2DRep*,ManipulationStyle,ManipulationStyle)
- Construction of the manipulator.
Method Index
- o
GetPosition()
- Gets the current position of the manipulator.
- o
SetPosition(CATMathAxis2D&)
- Sets the position of the manipulator.
- o
SetRotationPoint(CATMathPoint2D&)
- Set the invariant point of Rotation ManipulationStyle.
- o
SetStyle(ManipulationStyle,ManipulationStyle)
- Changes the styles of manipulation.
- o
SetTranslationDirection(CATMathDirection2D&)
- Set the direction of DirectionTranslation ManipulationStyle.
Enumerated Type Index
- o
ManipulationStyle
- Defines the different types of manipulation available for
a 2D representation.
Constructor and Destructor
o CAT2DManipulator
public CAT2DManipulator( | CATCommand* | iFather, |
| const CATString& | iName, |
| CAT2DRep* | iRep | =NULL, |
| const ManipulationStyle | iFirstStyle | =CAT2DManipulator::Translation, |
| const ManipulationStyle | iSecondStyle | =CAT2DManipulator::NoManipulation) |
-
Construction of the manipulator.
- Parameters:
-
- iFirstStyle
- = style of manipulation used by Mouse Left button drag
- iSecondStyle
- = style of manipulation used by Mouse Left+Middle buttons drag (left THEN middle)
Methods
o GetPosition
-
Gets the current position of the manipulator.
This Position is not linked to the position of any maniulated representation
The Manipulator changes that position according to the manipulations
o SetPosition
-
Sets the position of the manipulator.
o SetRotationPoint
-
Set the invariant point of Rotation ManipulationStyle.
o SetStyle
public void SetStyle( | const ManipulationStyle | iFirstStyle | =CAT2DManipulator::Translation, |
| const ManipulationStyle | iSecondStyle | =CAT2DManipulator::NoManipulation) |
-
Changes the styles of manipulation.
- Parameters:
-
- iFirstStyle
- = style of manipulation used by Mouse Left button drag
- iSecondStyle
- = style of manipulation used by Mouse Left+Middle buttons drag (left THEN middle)
o SetTranslationDirection
-
Set the direction of DirectionTranslation ManipulationStyle.
Enumerated Types
o ManipulationStyle
-
enum ManipulationStyle {
NoManipulation,
DirectionTranslation,
Translation,
Rotation
}
Defines the different types of manipulation available for
a 2D representation.
- Parameters:
-
- NoManipulation
- The CAT2DManipulator does no specific work
- DirectionTranslation
- The CAT2Dmanipulator contrains its position along a given direction during the manipulation
- Translation
- Free translation
- Rotation
- The CAT2DManipulator constrains its position on a circle centered on a given point
This object is included in the file: CAT2DManipulator.h
If needed, your Imakefile.mk should include the module: CATViz