SketchEllipse Class
The commands in the SketchEllipse class are described below.
.
More...
Inherits SketchItem.
Public Member Functions | |
| virtual void | AddPropertyByReference (String &name, ReferenceObject *value) |
| Adds ReferenceObject object to a specified variable. More... | |
| SketchVertex * | GetCenterVertex () |
| Returns the center point of the ellipse. More... | |
| ItemObject * | GetItem (Variant &value) |
| Returns an item displayed in the [Model Manager] tree such as assembly, part and sketch. Index is numbered in the order of the each items shown in the tree. More... | |
| double | GetMajorAngle () |
| Returns the rotation angle of the ellipse. More... | |
| double | GetMajorRadius () |
| Returns the major radius of the ellipse. More... | |
| double | GetMinorRadius () |
| Returns the minor radius of the ellipse. More... | |
| String | GetName () |
| Returns a name. More... | |
| virtual Variant | GetProperty (String &name) |
| Returns the value of the property with the specified name. More... | |
| String | GetScriptTypeName () |
| Returns the name of the object type as a string. More... | |
| virtual bool | IsValid () |
| Returns True if an object is valid. More... | |
| int | NumItems () |
| Returns the number of items. More... | |
| void | SetCenter (double center_x, double center_y) |
| Specifies the center point of the ellipse in the coordinate. More... | |
| void | SetCenterVertex (SketchVertex *v) |
| Specifies the center point of the ellipse to be the same position as the existing point. More... | |
| void | SetData (double center_x, double center_y, double major_radius, double minor_radius, double major_angle) |
| Specifies the center point of the ellipse in the coordinate, the radius and the rotation angle of the ellipse. More... | |
| void | SetMajorAngle (double angle) |
| Specifies the rotation angle of the ellipse. More... | |
| void | SetMajorRadius (double r) |
| Specifies the major radius of the ellipse. More... | |
| void | SetMinorRadius (double r) |
| Specifies the minor radius of the ellipse. More... | |
| void | SetName (String &name) |
| Specifies a name. More... | |
| void | SetProperty (String &name, Variant &value) |
| Specifies a value of property. More... | |
| virtual void | SetPropertyByReference (String &name, ReferenceObject *value) |
| Specifies the values in properties by ReferenceObject object. More... | |
SketchEllipse Class
The commands in the SketchEllipse class are described below.
.
For more information about the properties for this class, see here .
|
virtualinherited |
Adds ReferenceObject object to a specified variable.
| name | Property name |
| value | ReferenceObject object (target) |
| SketchVertex * SketchEllipse::GetCenterVertex | ( | ) |
Returns the center point of the ellipse.
|
inherited |
Returns an item displayed in the [Model Manager] tree such as assembly, part and sketch. Index is numbered in the order of the each items shown in the tree.
| value | Item name or index |
| double SketchEllipse::GetMajorAngle | ( | ) |
Returns the rotation angle of the ellipse.
| double SketchEllipse::GetMajorRadius | ( | ) |
Returns the major radius of the ellipse.
| double SketchEllipse::GetMinorRadius | ( | ) |
Returns the minor radius of the ellipse.
|
inherited |
Returns a name.
|
virtualinherited |
Returns the value of the property with the specified name.
| name | Property name |
|
inherited |
Returns the name of the object type as a string.
|
virtualinherited |
Returns True if an object is valid.
Reimplemented from ItemObject.
|
inherited |
Returns the number of items.
| void SketchEllipse::SetCenter | ( | double | center_x, |
| double | center_y | ||
| ) |
Specifies the center point of the ellipse in the coordinate.
| center_x | Center point in the X coordinate |
| center_y | Center point in the Y coordinate |
| void SketchEllipse::SetCenterVertex | ( | SketchVertex * | v | ) |
Specifies the center point of the ellipse to be the same position as the existing point.
| v | SketchVertex object |
| void SketchEllipse::SetData | ( | double | center_x, |
| double | center_y, | ||
| double | major_radius, | ||
| double | minor_radius, | ||
| double | major_angle | ||
| ) |
Specifies the center point of the ellipse in the coordinate, the radius and the rotation angle of the ellipse.
| center_x | Center point in the X coordinate |
| center_y | Center point in the Y coordinate |
| major_radius | Radius of the major axis |
| minor_radius | Radius of the minor axis |
| major_angle | Rotation angle of ellipse |
| void SketchEllipse::SetMajorAngle | ( | double | angle | ) |
Specifies the rotation angle of the ellipse.
| angle | Rotation angle of the ellipse |
| void SketchEllipse::SetMajorRadius | ( | double | r | ) |
Specifies the major radius of the ellipse.
| r | Major radius of the ellipse |
| void SketchEllipse::SetMinorRadius | ( | double | r | ) |
Specifies the minor radius of the ellipse.
| r | Minor radius of the ellipse |
|
inherited |
Specifies a name.
| name | Item name |
|
virtualinherited |
Specifies a value of property.
| name | Property name |
| value | Value of properties |
Reimplemented from ItemObject.
|
virtualinherited |
Specifies the values in properties by ReferenceObject object.
| name | Property name |
| value | ReferenceObject object (target) |