Open CASCADE Technology
6.5.4
|
Constructs line datums to be used in construction of
composite shapes.
#include <AIS_Line.hxx>
Public Member Functions | |
AIS_Line (const Handle< Geom_Line > &aLine) | |
Initializes the line aLine. | |
AIS_Line (const Handle< Geom_Point > &aStartPoint, const Handle< Geom_Point > &aEndPoint) | |
Initializes a starting point aStartPoint and a finishing point aEndPoint for the line. | |
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 |
Returns the signature 5. | |
virtual AIS_KindOfInteractive | Type () const |
Returns the type Datum. | |
const Handle_Geom_Line & | Line () const |
Constructs an infinite line. | |
void | Points (Handle< Geom_Point > &PStart, Handle< Geom_Point > &PEnd) const |
Returns the starting point PStart and the end point PEnd of the line set by SetPoints. | |
void | SetLine (const Handle< Geom_Line > &L) |
instantiates an infinite line. | |
void | SetPoints (const Handle< Geom_Point > &P1, const Handle< Geom_Point > &P2) |
Sets the starting point P1 and ending point P2 of the infinite line to create a finite line segment. | |
void | SetColor (const Quantity_NameOfColor aColor) |
Provides a new color setting aColor for the line in the drawing tool, or "Drawer". | |
void | SetColor (const Quantity_Color &aColor) |
void | SetWidth (const Standard_Real aValue) |
Provides the new width setting aValue for the line in the drawing tool, or "Drawer". | |
void | UnsetColor () |
Removes the color setting and returns the original color. | |
void | UnsetWidth () |
Removes the width setting and returns the original width. |
AIS_Line::AIS_Line | ( | const Handle< Geom_Line > & | aLine | ) |
AIS_Line::AIS_Line | ( | const Handle< Geom_Point > & | aStartPoint, |
const Handle< Geom_Point > & | aEndPoint | ||
) |
virtual void AIS_Line::Compute | ( | const Handle< Prs3d_Projector > & | aProjector, |
const Handle< Geom_Transformation > & | aTrsf, | ||
const Handle< Prs3d_Presentation > & | aPresentation | ||
) | [virtual] |
Reimplemented from PrsMgr_PresentableObject.
const Handle_Geom_Line& AIS_Line::Line | ( | ) | const |
void AIS_Line::Points | ( | Handle< Geom_Point > & | PStart, |
Handle< Geom_Point > & | PEnd | ||
) | const |
void AIS_Line::SetColor | ( | const Quantity_NameOfColor | aColor | ) | [virtual] |
Reimplemented from AIS_InteractiveObject.
void AIS_Line::SetColor | ( | const Quantity_Color & | aColor | ) | [virtual] |
Reimplemented from AIS_InteractiveObject.
void AIS_Line::SetLine | ( | const Handle< Geom_Line > & | L | ) |
void AIS_Line::SetPoints | ( | const Handle< Geom_Point > & | P1, |
const Handle< Geom_Point > & | P2 | ||
) |
void AIS_Line::SetWidth | ( | const Standard_Real | aValue | ) | [virtual] |
Reimplemented from AIS_InteractiveObject.
virtual Standard_Integer AIS_Line::Signature | ( | ) | const [virtual] |
Reimplemented from AIS_InteractiveObject.
virtual AIS_KindOfInteractive AIS_Line::Type | ( | ) | const [virtual] |
Reimplemented from AIS_InteractiveObject.
void AIS_Line::UnsetColor | ( | ) | [virtual] |
Reimplemented from AIS_InteractiveObject.
void AIS_Line::UnsetWidth | ( | ) | [virtual] |
Reimplemented from AIS_InteractiveObject.