The grid system element.
更多...
#include <APIGridSystemElement.h>
|
void | SetCoordinate (const Coordinate3 &_Coordinate) |
|
Coordinate3 | GetCoordinate () const |
|
void | SetItemOffsetX (const FloatList &_ItemOffsetX) |
|
FloatList | GetItemOffsetX () const |
|
void | SetItemOffsetY (const FloatList &_ItemOffsetY) |
|
FloatList | GetItemOffsetY () const |
|
void | SetItemOffsetZ (const FloatList &_ItemOffsetZ) |
|
FloatList | GetItemOffsetZ () const |
|
void | SetGridItemsX (const ElementIdList &_GridItemsX) |
|
ElementIdList | GetGridItemsX () const |
|
void | SetGridItemsY (const ElementIdList &_GridItemsY) |
|
ElementIdList | GetGridItemsY () const |
|
void | SetGridItemsZ (const ElementIdList &_GridItemsZ) |
|
ElementIdList | GetGridItemsZ () const |
|
void | SetItemLabels (const ElementIdList &_ItemLabels) |
|
ElementIdList | GetItemLabels () const |
|
bool | Initialize (const FloatList &itemsX, const FloatList &itemsY, const FloatList &itemsZ) |
|
GridElement | CreateGridElement (const EnumAxesDirection &dir, long index) const |
|
void | CreateItemLabels () |
|
long | GetDimensionX () const |
|
long | GetDimensionY () const |
|
long | GetDimensionZ () const |
|
ElementIdList | GetGridItemsU (const EnumAxesDirection &dir, long index) const |
|
ElementIdList | GetGridItemsV (const EnumAxesDirection &dir, long index) const |
|
virtual void | CollectSnapTargets (const SnapTargetCollector &collector) const |
|
SnapGridPoint | GetCrossPoint (const EnumAxesDirection &dir, const ElementId &itemU, const ElementId &itemV, long idxW) const |
|
float | GetItemOffset (const EnumAxesDirection &dir, long idx) const |
|
Coordinate3 | GetCoordinate (const EnumAxesDirection &dir, long idx) const |
|
virtual SceneNode | GetSceneNode () const |
|
void | SetVisible (bool _Visible) |
|
bool | GetVisible () const |
|
void | SetStandalone (bool _Standalone) |
|
bool | GetStandalone () const |
|
void | SetStyleId (const ElementId &_StyleId) |
|
ElementId | GetStyleId () const |
|
bool | IsVisible () const |
|
void | AddParameter (ParameterId paramId, const ParameterValue &pParameter) |
|
ParameterValue | RemoveParameter (ParameterId paramId) |
|
void | AddParameterUI (ParameterId paramId, const ParameterUI &pParameterUI) |
|
ParameterUI | GetParameterUI (ParameterId paramId) const |
|
ParameterUI | RemoveParameterUI (ParameterId paramId) |
|
ParameterUISet | GetParameterUISet () const |
|
virtual ParameterValue | GetParameterValue (ParameterId paramId) const |
|
virtual bool | SetParameterValue (ParameterId paramId, const ParameterValue &pValue) |
|
ElementId | GetId () const |
|
String | GetName () const |
|
void | SetName (const String &strName) |
|
String | GetCategory () const |
|
void | SetCategory (const String &category) |
|
ParameterUISet | GetSystemParameterUISet () const |
|
Document | GetOwnerDocument () const |
|
String | GetObjectClassId () const |
|
StringList | ListParentClassIds () const |
|
The grid system element.
TODO:
virtual void AnyCAD::API::GridSystemElement::CollectSnapTargets |
( |
const SnapTargetCollector & |
collector | ) |
const |
|
virtual |
Create the planner grid by grid items.
- 参数
-
dir | the direction, 0: X; 1: Y: 2: Z |
index | the number of the offset value. |
- 返回
- the GridElement
void AnyCAD::API::GridSystemElement::CreateItemLabels |
( |
| ) |
|
Create the labels for the bottom grid items.
Coordinate3 AnyCAD::API::GridSystemElement::GetCoordinate |
( |
| ) |
const |
Get Coordinate.
- 返回
- the Coordinate.
Get the coordinate.
- 参数
-
dir | the direction. |
idx | the index. |
- 返回
- the coordinate.
Get the index of the grid item.
- 参数
-
dir | the direction. |
itemU | the id of the grid item U. |
itemV | the id of the grid item V. |
idxW | the index of w direction. |
- 返回
- the point.
long AnyCAD::API::GridSystemElement::GetDimensionX |
( |
| ) |
const |
Get the dimension of the X direction.
- 返回
- the number.
long AnyCAD::API::GridSystemElement::GetDimensionY |
( |
| ) |
const |
Get the dimension of the Y direction.
- 返回
- the number.
long AnyCAD::API::GridSystemElement::GetDimensionZ |
( |
| ) |
const |
Get the dimension of the Z direction.
- 返回
- the number.
Get the grid items in U direction.
- 参数
-
dir | the axes direction |
index | the index |
- 返回
- the items.
Get the grid items in V direction.
- 参数
-
dir | the axes direction |
index | the index |
- 返回
- the items.
ElementIdList AnyCAD::API::GridSystemElement::GetGridItemsX |
( |
| ) |
const |
Get GridItemsX.
- 返回
- the GridItemsX.
ElementIdList AnyCAD::API::GridSystemElement::GetGridItemsY |
( |
| ) |
const |
Get GridItemsY.
- 返回
- the GridItemsY.
ElementIdList AnyCAD::API::GridSystemElement::GetGridItemsZ |
( |
| ) |
const |
Get GridItemsZ.
- 返回
- the GridItemsZ.
ElementIdList AnyCAD::API::GridSystemElement::GetItemLabels |
( |
| ) |
const |
Get ItemLabels.
- 返回
- the ItemLabels.
float AnyCAD::API::GridSystemElement::GetItemOffset |
( |
const EnumAxesDirection & |
dir, |
|
|
long |
idx |
|
) |
| const |
Get the item offset by index.
- 参数
-
dir | the direction. |
idx | the index. |
- 返回
- the offset value.
FloatList AnyCAD::API::GridSystemElement::GetItemOffsetX |
( |
| ) |
const |
Get ItemOffsetX.
- 返回
- the ItemOffsetX.
FloatList AnyCAD::API::GridSystemElement::GetItemOffsetY |
( |
| ) |
const |
Get ItemOffsetY.
- 返回
- the ItemOffsetY.
FloatList AnyCAD::API::GridSystemElement::GetItemOffsetZ |
( |
| ) |
const |
Get ItemOffsetZ.
- 返回
- the ItemOffsetZ.
virtual SceneNode AnyCAD::API::GridSystemElement::GetSceneNode |
( |
| ) |
const |
|
virtual |
Initialize the grid system by grid lines
- 参数
-
itemsX | the values in X direction. |
itemsY | the values in Y direction. |
itemsZ | the values in Z direction. |
- 返回
- false if failed.
void AnyCAD::API::GridSystemElement::SetCoordinate |
( |
const Coordinate3 & |
_Coordinate | ) |
|
Set the Coordinate.
- 参数
-
_Coordinate | the Coordinate. |
void AnyCAD::API::GridSystemElement::SetGridItemsX |
( |
const ElementIdList & |
_GridItemsX | ) |
|
Set the GridItemsX.
- 参数
-
_GridItemsX | the GridItemsX. |
void AnyCAD::API::GridSystemElement::SetGridItemsY |
( |
const ElementIdList & |
_GridItemsY | ) |
|
Set the GridItemsY.
- 参数
-
_GridItemsY | the GridItemsY. |
void AnyCAD::API::GridSystemElement::SetGridItemsZ |
( |
const ElementIdList & |
_GridItemsZ | ) |
|
Set the GridItemsZ.
- 参数
-
_GridItemsZ | the GridItemsZ. |
void AnyCAD::API::GridSystemElement::SetItemLabels |
( |
const ElementIdList & |
_ItemLabels | ) |
|
Set the ItemLabels.
- 参数
-
_ItemLabels | the ItemLabels. |
void AnyCAD::API::GridSystemElement::SetItemOffsetX |
( |
const FloatList & |
_ItemOffsetX | ) |
|
Set the ItemOffsetX.
- 参数
-
_ItemOffsetX | the ItemOffsetX. |
void AnyCAD::API::GridSystemElement::SetItemOffsetY |
( |
const FloatList & |
_ItemOffsetY | ) |
|
Set the ItemOffsetY.
- 参数
-
_ItemOffsetY | the ItemOffsetY. |
void AnyCAD::API::GridSystemElement::SetItemOffsetZ |
( |
const FloatList & |
_ItemOffsetZ | ) |
|
Set the ItemOffsetZ.
- 参数
-
_ItemOffsetZ | the ItemOffsetZ. |
该类的文档由以下文件生成: