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

The Grid Node. -since R2015. 更多...

#include <APIGridNode.h>

类 AnyCAD::API::GridNode 继承关系图:
AnyCAD::API::GroupSceneNode AnyCAD::API::SceneNode AnyCAD::API::Object AnyCAD::API::RectangleGridNode

Public 成员函数

void SetCellCount (int cx, int cy)
 
Vector2 GetCellCount () const
 
void SetCellSize (const Vector2 &cellSize)
 
Vector2 GetCellSize () const
 
void SetSubCellCount (int cx, int cy)
 
Vector2 GetSubCellSize () const
 
Vector2 GetSubCellCount () const
 
virtual void SetCellColor (const ColorValue &clr)
 
ColorValue GetCellColor () const
 
virtual void SetSubCellColor (const ColorValue &clr)
 
ColorValue GetSubCellColor () const
 
virtual void Update ()
 
- Public 成员函数 继承自 AnyCAD::API::GroupSceneNode
void AddNode (const SceneNode &pNode)
 
void RemoveNode (const ElementId &nId)
 
SceneNode FindNode (const ElementId &nId) const
 
SceneNode GetNodeByIndex (long idx) const
 
SceneNodeIterator NewSceneNodeIterator () const
 
long GetCount () const
 
void ClearAll ()
 
void SetAnimator (const Animator &pAnimator)
 
Animator GetAnimator () const
 
virtual void ResetShapeFilter (int nFilter)
 
- Public 成员函数 继承自 AnyCAD::API::SceneNode
ElementId GetId () const
 
void SetId (const ElementId &nId)
 
String GetName () const
 
void SetName (const String &name)
 
void SetVisible (bool bVisible)
 
bool IsVisible () const
 
bool IsPickable () const
 
void SetPickable (bool enabled)
 
bool IsFilterable () const
 
void SetFilterable (bool enabled)
 
bool IsFixedSize () const
 
void SetFixedSize (bool enabled)
 
void SetBBox (const AABox &bbox)
 
AABox GetBBox () const
 
void SetTransform (const Matrix4 &trf)
 
Matrix4 GetTransform () const
 
void SetPointStyle (const PointStyle &pointStyle)
 
PointStyle GetPointStyle () const
 
void SetLineStyle (const LineStyle &lineStyle)
 
LineStyle GetLineStyle () const
 
void SetFaceStyle (const FaceStyle &faceStyle)
 
FaceStyle GetFaceStyle () const
 
void SetRenderOrder (int order)
 
int GetRenderOrder () const
 
- Public 成员函数 继承自 AnyCAD::API::Object
String GetObjectClassId () const
 
StringList ListParentClassIds () const
 

详细描述

The Grid Node. -since R2015.

TODO:

成员函数说明

ColorValue AnyCAD::API::GridNode::GetCellColor ( ) const

Get large grid color

返回
the ColorValue.
Vector2 AnyCAD::API::GridNode::GetCellCount ( ) const

Get the count of each bigger cell.

返回
the count.
Vector2 AnyCAD::API::GridNode::GetCellSize ( ) const

Get the size of each bigger cell.

返回
the size.
ColorValue AnyCAD::API::GridNode::GetSubCellColor ( ) const

Get small grid color

返回
the ColorValue.
Vector2 AnyCAD::API::GridNode::GetSubCellCount ( ) const

Get the count of each sub cell.

返回
the count.
Vector2 AnyCAD::API::GridNode::GetSubCellSize ( ) const

Get the size of each sub cell.

返回
the size.
virtual void AnyCAD::API::GridNode::SetCellColor ( const ColorValue clr)
virtual

Set the large grid color

参数
clrthe ColorValue
void AnyCAD::API::GridNode::SetCellCount ( int  cx,
int  cy 
)

Set the number of the bigger cells.

参数
cxcount of direction X.
cycount of direction Y.
void AnyCAD::API::GridNode::SetCellSize ( const Vector2 cellSize)

Set the size of each bigger cell.

参数
cellSizesize of X and Y.
virtual void AnyCAD::API::GridNode::SetSubCellColor ( const ColorValue clr)
virtual

Set the small grid color

参数
clrthe ColorValue
void AnyCAD::API::GridNode::SetSubCellCount ( int  cx,
int  cy 
)

Set the number of the smaller cells.

参数
cxsize of X.
cysize of Y.
virtual void AnyCAD::API::GridNode::Update ( )
virtual

Apply the changes.

AnyCAD::API::RectangleGridNode 重载.


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