AnyCAD C++ API  2018
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义 
Public 成员函数 | 所有成员列表
AnyCAD::API::GridSystemElement类 参考

The grid system element. 更多...

#include <APIGridSystemElement.h>

类 AnyCAD::API::GridSystemElement 继承关系图:
AnyCAD::API::RenderableElement AnyCAD::API::PropertiesElement AnyCAD::API::Element AnyCAD::API::Object

Public 成员函数

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
 
- Public 成员函数 继承自 AnyCAD::API::RenderableElement
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
 
- Public 成员函数 继承自 AnyCAD::API::PropertiesElement
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)
 
- Public 成员函数 继承自 AnyCAD::API::Element
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
 
- Public 成员函数 继承自 AnyCAD::API::Object
String GetObjectClassId () const
 
StringList ListParentClassIds () const
 

详细描述

The grid system element.

TODO:

成员函数说明

virtual void AnyCAD::API::GridSystemElement::CollectSnapTargets ( const SnapTargetCollector collector) const
virtual

Collect snap targets.

参数
collectorthe collector
GridElement AnyCAD::API::GridSystemElement::CreateGridElement ( const EnumAxesDirection dir,
long  index 
) const

Create the planner grid by grid items.

参数
dirthe direction, 0: X; 1: Y: 2: Z
indexthe 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.
Coordinate3 AnyCAD::API::GridSystemElement::GetCoordinate ( const EnumAxesDirection dir,
long  idx 
) const

Get the coordinate.

参数
dirthe direction.
idxthe index.
返回
the coordinate.
SnapGridPoint AnyCAD::API::GridSystemElement::GetCrossPoint ( const EnumAxesDirection dir,
const ElementId itemU,
const ElementId itemV,
long  idxW 
) const

Get the index of the grid item.

参数
dirthe direction.
itemUthe id of the grid item U.
itemVthe id of the grid item V.
idxWthe 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.
ElementIdList AnyCAD::API::GridSystemElement::GetGridItemsU ( const EnumAxesDirection dir,
long  index 
) const

Get the grid items in U direction.

参数
dirthe axes direction
indexthe index
返回
the items.
ElementIdList AnyCAD::API::GridSystemElement::GetGridItemsV ( const EnumAxesDirection dir,
long  index 
) const

Get the grid items in V direction.

参数
dirthe axes direction
indexthe 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.

参数
dirthe direction.
idxthe 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

Get the visual node.

返回
the SceneNode.

重载 AnyCAD::API::RenderableElement .

bool AnyCAD::API::GridSystemElement::Initialize ( const FloatList itemsX,
const FloatList itemsY,
const FloatList itemsZ 
)

Initialize the grid system by grid lines

参数
itemsXthe values in X direction.
itemsYthe values in Y direction.
itemsZthe values in Z direction.
返回
false if failed.
void AnyCAD::API::GridSystemElement::SetCoordinate ( const Coordinate3 _Coordinate)

Set the Coordinate.

参数
_Coordinatethe Coordinate.
void AnyCAD::API::GridSystemElement::SetGridItemsX ( const ElementIdList _GridItemsX)

Set the GridItemsX.

参数
_GridItemsXthe GridItemsX.
void AnyCAD::API::GridSystemElement::SetGridItemsY ( const ElementIdList _GridItemsY)

Set the GridItemsY.

参数
_GridItemsYthe GridItemsY.
void AnyCAD::API::GridSystemElement::SetGridItemsZ ( const ElementIdList _GridItemsZ)

Set the GridItemsZ.

参数
_GridItemsZthe GridItemsZ.
void AnyCAD::API::GridSystemElement::SetItemLabels ( const ElementIdList _ItemLabels)

Set the ItemLabels.

参数
_ItemLabelsthe ItemLabels.
void AnyCAD::API::GridSystemElement::SetItemOffsetX ( const FloatList _ItemOffsetX)

Set the ItemOffsetX.

参数
_ItemOffsetXthe ItemOffsetX.
void AnyCAD::API::GridSystemElement::SetItemOffsetY ( const FloatList _ItemOffsetY)

Set the ItemOffsetY.

参数
_ItemOffsetYthe ItemOffsetY.
void AnyCAD::API::GridSystemElement::SetItemOffsetZ ( const FloatList _ItemOffsetZ)

Set the ItemOffsetZ.

参数
_ItemOffsetZthe ItemOffsetZ.

该类的文档由以下文件生成: