CutPlane class is used to handle settings and the display of a cut plane.
The class can be called from CutList class.
.
More...
Public Member Functions | |
| String | GetDisplayType () |
| Returns the display type of the cut plane or cut cylinder. More... | |
| String | GetName () |
| Returns the name of the cut plane as a string. More... | |
| Point * | GetNormal () |
| Returns the normal vector of the cut plane as a Point object. More... | |
| Point * | GetOrigin () |
| Returns the origin point of the cut plane as a Point object. More... | |
| Point * | GetOriginWithUnit (String &unitName) |
| Returns the origin point of the cut plane in the specified unit. More... | |
| double | GetRadius () |
| Returns the radius of the cut cylinder. More... | |
| double | GetRadiusWithUnit (String &unitName) |
| Returns the radius of the cut cylinder in the specified unit. More... | |
| bool | GetShowCutOnly () |
| bool | IsOn () |
| Returns the state of the cut plane, and Returns True as a return value if the switch is turned on. More... | |
| bool | IsValid () |
| Returns True if an object is valid. More... | |
| int | NumCircumferentialDivisions () |
| Returns the number of divisions in the circumferential direction of the cut cylinder. More... | |
| void | Off () |
| Turns off the switch of the cut plane. | |
| void | On () |
| Turns on the switch of the cut plane. | |
| void | SetDisplayType (String &typeName) |
| Specifies the display type of the cut plane or cut cylinder. More... | |
| void | SetName (String &name) |
| Specifies the name of the cut plane. More... | |
| void | SetNormal (Point *normal) |
| Specifies the normal vector of the cut plane. More... | |
| void | SetNormalXYZ (double x, double y, double z) |
| Specifies the normal vector of the cut plane by using x, y, and z. More... | |
| void | SetNumCircumferentialDivisions (int num) |
| Specifies the number of divisions in the circumferential direction of the cut cylinder. More... | |
| void | SetOrigin (Point *origin) |
| Specifies a point on the cut plane. More... | |
| void | SetOriginWithUnit (Point *origin, String &unitName) |
| Specifies a point on the cut plane by specifying the unit. More... | |
| void | SetOriginXYZ (double x, double y, double z) |
| Specifies a point on the cut plane as x,y,z coordinates. More... | |
| void | SetOriginXYZWithUnit (double x, double y, double z, String &unitName) |
| Specifies a point on the cut plane as x,y,z coordinates. More... | |
| void | SetRadius (double radius) |
| Specifies the radius of the cut cylinder. More... | |
| void | SetRadiusWithUnit (double radius, String &unitName) |
| Specifies the radius of the cut cylinder. More... | |
| void | SetShowCutOnly (bool flag) |
| void | SetUseCircumferentialDivisions (bool use) |
| Specifies whether to use the number of circumferential divisions of the cut cylinder. More... | |
| bool | UseCircumferentialDivisions () |
| Returns whether to use the number of circumferential divisions of the cut cylinder. More... | |
CutPlane class is used to handle settings and the display of a cut plane.
The class can be called from CutList class.
.
Example of obtaining the class object:
| String CutPlane::GetDisplayType | ( | ) |
Returns the display type of the cut plane or cut cylinder.
| String CutPlane::GetName | ( | ) |
Returns the name of the cut plane as a string.
| Point * CutPlane::GetNormal | ( | ) |
| Point * CutPlane::GetOrigin | ( | ) |
| Point * CutPlane::GetOriginWithUnit | ( | String & | unitName | ) |
Returns the origin point of the cut plane in the specified unit.
| unitName | Unit |
| double CutPlane::GetRadius | ( | ) |
Returns the radius of the cut cylinder.
| double CutPlane::GetRadiusWithUnit | ( | String & | unitName | ) |
Returns the radius of the cut cylinder in the specified unit.
| unitName | Unit |
| bool CutPlane::GetShowCutOnly | ( | ) |
| bool CutPlane::IsOn | ( | ) |
Returns the state of the cut plane, and Returns True as a return value if the switch is turned on.
| bool CutPlane::IsValid | ( | ) |
Returns True if an object is valid.
| int CutPlane::NumCircumferentialDivisions | ( | ) |
Returns the number of divisions in the circumferential direction of the cut cylinder.
| void CutPlane::SetDisplayType | ( | String & | typeName | ) |
Specifies the display type of the cut plane or cut cylinder.
| typeName |
|
| void CutPlane::SetName | ( | String & | name | ) |
Specifies the name of the cut plane.
| name | Name of the cut plane |
| void CutPlane::SetNormal | ( | Point * | normal | ) |
Specifies the normal vector of the cut plane.
| normal | Point object (direction vector) |
| void CutPlane::SetNormalXYZ | ( | double | x, |
| double | y, | ||
| double | z | ||
| ) |
Specifies the normal vector of the cut plane by using x, y, and z.
| x | X-coordinate |
| y | Y-coordinate |
| z | Z-coordinate |
| void CutPlane::SetNumCircumferentialDivisions | ( | int | num | ) |
Specifies the number of divisions in the circumferential direction of the cut cylinder.
| num | Number of divisions |
| void CutPlane::SetOrigin | ( | Point * | origin | ) |
Specifies a point on the cut plane.
| origin | Point object (start point) |
| void CutPlane::SetOriginWithUnit | ( | Point * | origin, |
| String & | unitName | ||
| ) |
Specifies a point on the cut plane by specifying the unit.
| origin | Point object (start point) |
| unitName | Unit |
| void CutPlane::SetOriginXYZ | ( | double | x, |
| double | y, | ||
| double | z | ||
| ) |
Specifies a point on the cut plane as x,y,z coordinates.
| x | X-coordinate |
| y | Y-coordinate |
| z | Z-coordinate |
| void CutPlane::SetOriginXYZWithUnit | ( | double | x, |
| double | y, | ||
| double | z, | ||
| String & | unitName | ||
| ) |
Specifies a point on the cut plane as x,y,z coordinates.
| x | X-coordinate |
| y | Y-coordinate |
| z | Z-coordinate |
| unitName | Unit |
| void CutPlane::SetRadius | ( | double | radius | ) |
Specifies the radius of the cut cylinder.
| radius | Radius |
| void CutPlane::SetRadiusWithUnit | ( | double | radius, |
| String & | unitName | ||
| ) |
Specifies the radius of the cut cylinder.
| radius | Radius |
| unitName | Unit |
| void CutPlane::SetShowCutOnly | ( | bool | flag | ) |
| flag | True=1 : Displays the cut part only
False=0 : Displays the cross-section
|
| void CutPlane::SetUseCircumferentialDivisions | ( | bool | use | ) |
Specifies whether to use the number of circumferential divisions of the cut cylinder.
| use | Whether or not to use the the number of circumferential divisions |
| bool CutPlane::UseCircumferentialDivisions | ( | ) |
Returns whether to use the number of circumferential divisions of the cut cylinder.