Open CASCADE Technology  6.5.4
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Protected Member Functions
AIS_Point Class Reference

Constructs point datums to be used in construction of
composite shapes. The datum is displayed as the plus marker +.

#include <AIS_Point.hxx>

Inheritance diagram for AIS_Point:
Inheritance graph
[legend]

Public Member Functions

 AIS_Point (const Handle< Geom_Point > &aComponent)
 Initializes the point aComponent from which the point
datum will be built.

virtual Standard_Integer Signature () const
 Returns index 1, the default index for a point.

virtual AIS_KindOfInteractive Type () const
 Indicates that a point is a datum.

Handle_Geom_Point Component ()
 Returns the component specified in SetComponent.

void SetComponent (const Handle< Geom_Point > &aComponent)
 Constructs an instance of the point aComponent.

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

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 !!!

void SetColor (const Quantity_NameOfColor aColor)
 Allows you to provide settings for the cp;pr aColor.

void SetColor (const Quantity_Color &aColor)
void UnsetColor ()
 Allows you to remove color settings.

void SetMarker (const Aspect_TypeOfMarker aType)
 Allows you to provide settings for a marker. These include

void UnsetMarker ()
 Removes the marker settings.

Standard_Boolean HasMarker () const
 Returns true if the point datum has a marker.

TopoDS_Vertex Vertex () const
 Converts a point into a vertex.

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.


Constructor & Destructor Documentation


Member Function Documentation

Reimplemented from AIS_InteractiveObject.

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

Reimplemented from PrsMgr_PresentableObject.

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

Reimplemented from PrsMgr_PresentableObject.

Reimplemented from AIS_InteractiveObject.

void AIS_Point::SetColor ( const Quantity_Color aColor) [virtual]

Reimplemented from AIS_InteractiveObject.

  • type of marker,
  • marker color,
  • scale factor.
virtual Standard_Integer AIS_Point::Signature ( ) const [virtual]

Reimplemented from AIS_InteractiveObject.

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

Reimplemented from AIS_InteractiveObject.

void AIS_Point::UnsetColor ( ) [virtual]

Reimplemented from AIS_InteractiveObject.


The documentation for this class was generated from the following file: