Open CASCADE Technology 6.6.0
Public Member Functions | Protected Member Functions
AIS_PlaneTrihedron Class Reference

To construct a selectable 2d axis system in a 3d
drawing. This can be placed anywhere in the 3d
system, and provides a coordinate system for
drawing curves and shapes in a plane.
There are 3 selection modes:
More...

#include <AIS_PlaneTrihedron.hxx>

Inheritance diagram for AIS_PlaneTrihedron:
Inheritance graph
[legend]

Public Member Functions

 AIS_PlaneTrihedron (const Handle< Geom_Plane > &aPlane)
 Initializes the plane aPlane. The plane trihedron is
constructed from this and an axis.

Handle_Geom_Plane Component ()
 Returns the component specified in SetComponent.

void SetComponent (const Handle< Geom_Plane > &aPlane)
 Creates an instance of the component object aPlane.

Handle_AIS_Line XAxis () const
 Returns the "XAxis".

Handle_AIS_Line YAxis () const
 Returns the "YAxis".

Handle_AIS_Point Position () const
 Returns the point of origin of the plane trihedron.

void SetLength (const Standard_Real theLength)
 Sets the length of the X and Y axes.

Standard_Real GetLength () const
 Returns the length of X and Y axes.

Standard_Boolean AcceptDisplayMode (const Standard_Integer aMode) const
 Returns true if the display mode selected, aMode, is valid.

virtual void Compute (const Handle< Prs3d_Projector > &aProjector, const Handle< Geom_Transformation > &aTrsf, const Handle< Prs3d_Presentation > &aPresentation)
 computes the presentation according to a point of view
given by <aProjector>.
To be Used when the associated degenerated Presentations
have been transformed by <aTrsf> which is not a Pure
Translation. The HLR Prs can't be deducted automatically
WARNING :<aTrsf> must be applied
to the object to display before computation !!!

virtual Standard_Integer Signature () const
 Specifies additional characteristics of Interactive
Objects. A signature is, in fact, an index with integer
values assigned different properties.
This method is frequently used in conjuction with
Type to give a particular type and signature to an
Interactive Object. By default, the Interactive Object
has a None type and a signature of 0. Among the
datums, this signature is attributed to the shape
The remaining datums have the following default signatures:

virtual AIS_KindOfInteractive Type () const
 Returns datum as the type of Interactive Object.

void SetColor (const Quantity_NameOfColor aColor)
 Allows you to provide settings for the color aColor.

void SetColor (const Quantity_Color &aColor)
void SetXLabel (const TCollection_AsciiString &aLabel)
void SetYLabel (const TCollection_AsciiString &aLabel)

Protected Member Functions

virtual void Compute (const Handle< PrsMgr_PresentationManager3d > &aPresentationManager, const Handle< Prs3d_Presentation > &aPresentation, const Standard_Integer aMode=0)
 Calculates the 3D view aPresentation and its
updates. The latter are managed by aPresentationManager.
aPresentableObject has the display mode aMode;
this has the default value of 0, that is, the wireframe display mode.


Detailed Description


Constructor & Destructor Documentation

AIS_PlaneTrihedron::AIS_PlaneTrihedron ( const Handle< Geom_Plane > &  aPlane)

Member Function Documentation

Standard_Boolean AIS_PlaneTrihedron::AcceptDisplayMode ( const Standard_Integer  aMode) const [virtual]

Reimplemented from AIS_InteractiveObject.

Handle_Geom_Plane AIS_PlaneTrihedron::Component ( )
virtual void AIS_PlaneTrihedron::Compute ( const Handle< Prs3d_Projector > &  aProjector,
const Handle< Geom_Transformation > &  aTrsf,
const Handle< Prs3d_Presentation > &  aPresentation 
) [virtual]

Reimplemented from PrsMgr_PresentableObject.

virtual void AIS_PlaneTrihedron::Compute ( const Handle< PrsMgr_PresentationManager3d > &  aPresentationManager,
const Handle< Prs3d_Presentation > &  aPresentation,
const Standard_Integer  aMode = 0 
) [protected, virtual]

Reimplemented from PrsMgr_PresentableObject.

Standard_Real AIS_PlaneTrihedron::GetLength ( ) const
Handle_AIS_Point AIS_PlaneTrihedron::Position ( ) const
void AIS_PlaneTrihedron::SetColor ( const Quantity_Color aColor) [virtual]

Reimplemented from AIS_InteractiveObject.

void AIS_PlaneTrihedron::SetColor ( const Quantity_NameOfColor  aColor) [virtual]

Reimplemented from AIS_InteractiveObject.

void AIS_PlaneTrihedron::SetComponent ( const Handle< Geom_Plane > &  aPlane)
void AIS_PlaneTrihedron::SetLength ( const Standard_Real  theLength)
void AIS_PlaneTrihedron::SetXLabel ( const TCollection_AsciiString aLabel)
void AIS_PlaneTrihedron::SetYLabel ( const TCollection_AsciiString aLabel)
virtual Standard_Integer AIS_PlaneTrihedron::Signature ( ) const [virtual]
  • Point signature 1
  • Axis signature 2
  • Trihedron signature 3
  • PlaneTrihedron signature 4
  • Line signature 5
  • Circle signature 6
  • Plane signature 7.

Reimplemented from AIS_InteractiveObject.

virtual AIS_KindOfInteractive AIS_PlaneTrihedron::Type ( ) const [virtual]

Reimplemented from AIS_InteractiveObject.

Handle_AIS_Line AIS_PlaneTrihedron::XAxis ( ) const
Handle_AIS_Line AIS_PlaneTrihedron::YAxis ( ) const

The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines