3 #ifndef _APIRenderer_H_
4 #define _APIRenderer_H_
8 namespace AnyCAD{
namespace API
11 class SceneEnvironment;
16 class SnapNodeManager;
48 bool Initialize (
long hWnd,
int width,
int height,
const SceneManager& sceneManager,
bool bZUp) ;
61 void RequestDraw (
int nHint) ;
69 void Resize (
int x,
int y,
int cx,
int cy) ;
75 bool Print (
const String& fileName) ;
95 void SetSkyBox (
const String& strName) ;
100 String GetSkyBox ()
const;
117 void SetDisplayMode (
int nMode) ;
122 int GetDisplayMode ()
const;
127 void FitAll (
const float& scale) ;
134 void FitBBox (
const AABox& bbox,
const float& scale) ;
139 void SetPickMode (
int nMode) ;
144 int GetPickMode ()
const;
151 int Highlight (
int cx,
int cy) ;
162 void ClearHighlight () ;
173 int Select (
bool clearOld) ;
177 void ClearSelection () ;
187 int GetSnapFlags ()
const;
192 void SetSnapFlags (
int val) ;
223 Ray ComputeScreenRay (
int cx,
int cy)
const;
229 Ray ComputeScreenRay (
const Vector2& pt)
const;
234 void ShowWorkingGrid (
bool bShow) ;
249 void SetCoordinateWidget (
const SceneNode& node) ;
253 void RemoveWidgetNode (
const ElementId& nId) ;
258 void AddWidgetNode (
const SceneNode& node) ;
262 #endif //_APIRenderer_H_
Ray.
Definition: APIMath.h:364
AABox.
Definition: APIMath.h:281
The SnapeNode manager.
Definition: APISnapNodeManager.h:20
std::string String
Definition: APIString.h:10
The selection context interface.
Definition: APISelectionQuery.h:17
工作平面
Definition: APIWorkingPlane.h:18
Point or vector.
Definition: APIMath.h:16
The id.
Definition: APIElementId.h:16
场景的节点的基类。
Definition: APISceneNode.h:22
场景管理器
Definition: APISceneManager.h:23
The render window.
Definition: APIRenderWindow.h:19
EnumStandardView
Definition: APIEnums.h:56
#define DECLARE_APIOBJECT(className)
Definition: APIObjectDef.h:10
Point or vector.
Definition: APIMath.h:37
The camera operator.
Definition: APICameraOperator.h:19
场景的全局设置
Definition: APISceneEnvironment.h:19
渲染器。
Definition: APIRenderer.h:25