InfiniteLineGlyphElement
- class HPS.InfiniteLineGlyphElement : public HPS.GlyphElement
The InfiniteLineGlyphElement class is a user space object. It is used to add infinite line and ray elements to a glyph.
Public Functions
- override void Dispose ()
- InfiniteLineGlyphElement ()
The default constructor creates an empty InfiniteLineGlyphElement object.
- InfiniteLineGlyphElement (HPS.GlyphElement in_that)
This constructor creates a InfiniteLineGlyphElement object that contains the same settings as the source GlyphElement. The copy will only be successful if the source glyph element is really an upcast of an infinite line glyph element. Otherwise the copy will fail and the resulting InfiniteLineGlyphElement will be invalid.
- Param in_that
The source GlyphElement to copy.
- InfiniteLineGlyphElement (HPS.GlyphPoint in_first, HPS.GlyphPoint in_second)
This constructor creates a InfiniteLineGlyphElement with the specified vector and type.
- Param in_first
The first point along the InfiniteLineGlyphElement
- Param in_second
The second point along the InfiniteLineGlyphElement
- InfiniteLineGlyphElement (HPS.GlyphPoint in_first, HPS.GlyphPoint in_second, HPS.InfiniteLine.Type in_type)
This constructor creates a InfiniteLineGlyphElement with the specified vector and type.
- Param in_first
The first point along the InfiniteLineGlyphElement
- Param in_second
The second point along the InfiniteLineGlyphElement
- Param in_type
The type of infinite line - either Ray or Line
- InfiniteLineGlyphElement (HPS.InfiniteLineGlyphElement in_that)
The copy constructor creates a new InfiniteLineGlyphElement object that contains the same settings as the source InfiniteLineGlyphElement.
- Param in_that
The source InfiniteLineGlyphElement to copy.
- override HPS.Type ObjectType ()
This function returns the type the object, as declared (if the object is derived, this does not give the true type of the derived object).
- Return
The declared type of the object in question, which may differ from the true, underlying type.
- void SetFirstPoint (HPS.GlyphPoint in_point)
Sets the first point for the vector defining the infinite line or ray for this InfiniteLineGlyphElement.
- Param in_point
The first point for the vector defining the infinite line or ray.
- void SetInfiniteType (HPS.InfiniteLine.Type in_type)
Sets the type of this InfiniteLineGlyphElement, i.e., whether it represents an infinite line or ray.
- Param in_type
The type of this InfiniteLineGlyphElement.
- void SetPoints (HPS.GlyphPoint in_first, HPS.GlyphPoint in_second)
Sets the points for the vector defining the infinite line or ray for this InfiniteLineGlyphElement.
- Param in_first
The first point for the vector defining the infinite line or ray.
- Param in_second
The second point for the vector defining the infinite line or ray.
- void SetSecondPoint (HPS.GlyphPoint in_point)
Sets the second point for the vector defining the infinite line or ray for this InfiniteLineGlyphElement.
- Param in_point
The second point for the vector defining the infinite line or ray.
- bool ShowFirstPoint (out HPS.GlyphPoint out_point)
Shows the first point for the vector defining the infinite line or ray for this InfiniteLineGlyphElement.
- Param out_point
The first point for the vector defining the infinite line or ray.
- Return
true if a first point was set, false otherwise.
- bool ShowInfiniteType (out HPS.InfiniteLine.Type out_type)
Shows the type of this InfiniteLineGlyphElement.
- Param out_type
The type of this InfiniteLineGlyphElement.
- Return
true if a type was set, false otherwise.
- bool ShowSecondPoint (out HPS.GlyphPoint out_point)
Shows the second point for the vector defining the infinite line or ray for this InfiniteLineGlyphElement.
- Param out_point
The second point for the vector defining the infinite line or ray.
- Return
true if a second point was set, false otherwise.