#include <hps.h>
Public Member Functions | |
| TrimElement () | |
| TrimElement (TrimElement const &in_that) | |
| TrimElement (LineKit const &in_line) | |
| TrimElement (NURBSCurveKit const &in_curve) | |
| TrimElement (TrimElement &&in_that) | |
| TrimElement & | operator= (TrimElement &&in_that) |
| HPS::Type | ObjectType () const |
| void | Set (TrimElement const &in_that) |
| TrimElement & | operator= (TrimElement const &in_that) |
| bool | Equals (TrimElement const &in_that) const |
| bool | operator== (TrimElement const &in_that) const |
| bool | operator!= (TrimElement const &in_that) const |
| void | SetCurve (LineKit const &in_line) |
| void | SetCurve (NURBSCurveKit const &in_curve) |
| bool | ShowCurve (Trim::Type &out_type, LineKit &out_line, NURBSCurveKit &out_curve) const |
Public Member Functions inherited from HPS::Object | |
| Object & | operator= (Object const &other_object) |
| Object (Object &&in_that) | |
| Object & | operator= (Object &&in_that) |
| HPS::Type | Type () const |
| virtual bool | Empty () const |
| virtual void | Reset () |
| bool | HasType (HPS::Type in_mask) const |
| intptr_t | GetClassID () const |
| intptr_t | GetInstanceID () const |
Additional Inherited Members | |
Static Public Member Functions inherited from HPS::Object | |
| template<typename T > | |
| static intptr_t | ClassID () |
The TrimElement class is a user space object. It is used to specify the curves that are used to define a trim region.
| HPS::TrimElement::TrimElement | ( | ) |
The default constructor creates an empty TrimElement object.
| HPS::TrimElement::TrimElement | ( | TrimElement const & | in_that | ) |
The copy constructor creates a new TrimElement object that contains the same settings as the source TrimElement.
| in_that | The source TrimElement to copy. |
| HPS::TrimElement::TrimElement | ( | LineKit const & | in_line | ) |
This constructor creates a TrimElement with a line.
| in_line | The line for this TrimElement. Only the X and Y coordinates of the points defining the line will be used when the trim region is applied to a surface. The coordinates will be treated as U and V parameter values in the normalized parameter space for the NURBS surface. |
| HPS::TrimElement::TrimElement | ( | NURBSCurveKit const & | in_curve | ) |
This constructor creates a TrimElement with a NURBS curve.
| in_curve | The NURBS curve for this TrimElement. Only the X and Y coordinates of the control points defining the curve will be used when the trim region is applied to a surface. The coordinates will be treated as U and V parameter values in the normalized parameter space for the NURBS surface. |
| HPS::TrimElement::TrimElement | ( | TrimElement && | in_that | ) |
The move constructor creates a TrimElement by transferring the underlying impl of the rvalue reference to this TrimElement thereby avoiding a copy and allocation.
| in_that | An rvalue reference to a TrimElement to take the impl from. |
| bool HPS::TrimElement::Equals | ( | TrimElement const & | in_that | ) | const |
Check if the source TrimElement is equivalent to this TrimElement.
| in_that | The source TrimElement to compare to this TrimElement. |
|
inlinevirtual |
This function returns the type the object, as declared. This does not necessarily give the true type of the underlying object.
Reimplemented from HPS::Object.
| bool HPS::TrimElement::operator!= | ( | TrimElement const & | in_that | ) | const |
Check if the source TrimElement is not equivalent to this TrimElement.
| in_that | The source TrimElement to compare to this TrimElement. |
| TrimElement& HPS::TrimElement::operator= | ( | TrimElement && | in_that | ) |
The move assignment operator transfers the underlying impl of the rvalue reference to this TrimElement thereby avoiding a copy.
| in_that | An rvalue reference to a TrimElement to take the impl from. |
| TrimElement& HPS::TrimElement::operator= | ( | TrimElement const & | in_that | ) |
Copies the source TrimElement into this TrimElement.
| in_that | The source TrimElement to copy. |
| bool HPS::TrimElement::operator== | ( | TrimElement const & | in_that | ) | const |
Check if the source TrimElement is equivalent to this TrimElement.
| in_that | The source TrimElement to compare to this TrimElement. |
| void HPS::TrimElement::Set | ( | TrimElement const & | in_that | ) |
Copies the source TrimElement into this TrimElement.
| in_that | The source TrimElement to copy. |
| void HPS::TrimElement::SetCurve | ( | LineKit const & | in_line | ) |
Sets a line as the curve for this TrimElement.
| in_line | The line for this TrimElement. Only the X and Y coordinates of the points defining the line will be used when the trim region is applied to a surface. The coordinates will be treated as U and V parameter values in the normalized parameter space for the NURBS surface. |
| void HPS::TrimElement::SetCurve | ( | NURBSCurveKit const & | in_curve | ) |
Sets a NURBS curve as the curve for this TrimElement.
| in_curve | The NURBS curve for this TrimElement. Only the X and Y coordinates of the control points defining the curve will be used when the trim region is applied to a surface. The coordinates will be treated as U and V parameter values in the normalized parameter space for the NURBS surface. |
| bool HPS::TrimElement::ShowCurve | ( | Trim::Type & | out_type, |
| LineKit & | out_line, | ||
| NURBSCurveKit & | out_curve | ||
| ) | const |
Shows the curve for this TrimElement.
| out_type | The type of curve used for this TrimElement. |
| out_line | The line for the trim curve. This is only valid if out_type</type> is NURBSSurface::Line. |
| out_curve | The NURBS curve for the trim curve. This is only valid if out_type</type> is NURBSSurface::Curve. |