AnyCAD C++ API  2018
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义 
APITopoShapeConvert.h
浏览该文件的文档.
1 //Public API. Powered by AnyCAD.
2 
3 #ifndef _APITopoShapeConvert_H_
4 #define _APITopoShapeConvert_H_
5 
6 #include "APIObjectDef.h"
7 
8 namespace AnyCAD{ namespace API
9 {
10  class EntitySceneNode;
11  class TopoShape;
12  class RenderableEntity;
13  class GeomCurve;
14  class TopoShapeGroup;
15  class AxesWidget;
16  class ScreenWidget;
17  class SceneNode;
26  {
28  public:
35  static RenderableEntity ToEntity (const TopoShape& pTopoShape, Real tolerance) ;
42  static SceneNode ToSceneNode (const TopoShape& topoShape, Real tolerance) ;
49  static EntitySceneNode ToEntityNode (const TopoShape& pTopoShape, Real tolerance) ;
55  static TopoShapeGroup ToTopoShape (const SceneNode& sceneNode) ;
62  static EntitySceneNode ToFaceNode (const TopoShape& pTopoShape, Real tolerance) ;
69  static EntitySceneNode ToEdgeNode (const TopoShape& pTopoShape, Real tolerance) ;
79  static RenderableEntity CreateFaceEntity (const FloatList& vb, const UIntList& ib, const FloatList& nb, const FloatList& texcb, const AABox& bbox) ;
89  static RenderableEntity CreateColoredFaceEntity (const FloatList& vb, const UIntList& ib, const FloatList& nb, const FloatList& cb, const AABox& bbox) ;
96  static RenderableEntity CreateEdgeEntity (const FloatList& vb, const AABox& bbox) ;
103  static RenderableEntity CreatePointsCloud (const FloatList& buffer, Real pointSize) ;
108  static ScreenWidget CreateCoordinateWidget () ;
113  static AxesWidget CreateAxesWidget () ;
118  static Real Deflection () ;
123  static void SetDeflection (Real val) ;
124  };//TopoShapeConvert;
125 }}//API
126 
127 #endif //_APITopoShapeConvert_H_
#define AnyPlatformAPI_API
Definition: AnyPlatformAPI.h:8
AABox.
Definition: APIMath.h:281
可以显示的Entity。
Definition: APIRenderableEntity.h:19
std::vector< unsigned int > UIntList
Definition: APIString.h:17
The axis widget.
Definition: APIAxesWidget.h:19
The screen coordinate widget.
Definition: APIScreenWidget.h:20
EntitySceneNode.
Definition: APIEntitySceneNode.h:20
场景的节点的基类。
Definition: APISceneNode.h:22
拓扑对象
Definition: APITopoShape.h:18
The TopoShapeConvert.
Definition: APITopoShapeConvert.h:25
#define DECLARE_APIOBJECT(className)
Definition: APIObjectDef.h:10
std::vector< float > FloatList
Definition: APIString.h:15
拓扑对象组
Definition: APITopoShapeGroup.h:18
double Real
Definition: APIMath.h:7