VisualizationFoundation 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( iFather,
const iName,
iRep=NULL,
const iFirstStyle=CAT2DManipulator::Translation,
const 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
public virtual 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
public virtual SetPosition( const iPosition)
Sets the position of the manipulator.
o SetRotationPoint
public virtual SetRotationPoint( const iPoint)
Set the invariant point of Rotation ManipulationStyle.
o SetStyle
public SetStyle( const iFirstStyle=CAT2DManipulator::Translation,
const 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
public virtual SetTranslationDirection( const iAxis)
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: CATVisFoundation

Copyright © 1999-2015, Dassault Systèmes. All rights reserved.