HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DM_Detail.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * NAME: Direct manipulation library (C++)
7  *
8  * COMMENTS:
9  * Class with a very simple interface for drawing a GU_Detail.
10  *
11  */
12 
13 #ifndef __DM_Detail_H__
14 #define __DM_Detail_H__
15 
16 #include "DM_API.h"
17 #include <GR/GR_Defines.h>
18 #include <GU/GU_Detail.h>
19 #include <GU/GU_DetailHandle.h>
20 #include <UT/UT_UniquePtr.h>
21 #include <GUI/GUI_DetailLook.h>
22 
23 class UT_Color;
24 class RE_Render;
25 class DM_SceneManager;
26 
28 {
29 public:
30  DM_Detail(DM_SceneManager &scene_manager, const char *name);
31  ~DM_Detail();
32 
33  GU_Detail &getDetail();
34  void renderWire(RE_RenderContext r,
35  int pickflag, uint id1, uint id2,
36  const UT_Color &color,
37  GU_Detail *gdp = NULL,
38  const UT_DMatrix4 *xform = NULL);
39 
40 private:
41  DM_SceneManager &mySceneManager;
42  GU_Detail myDetail;
43  GU_DetailHandle myDetailHandle;
44  GUI_DetailLookPtr myDetailLook;
45 };
46 
47 #endif
48 
Temporary container for either a RV_Render and an RE_Render.
#define DM_API
Definition: DM_API.h:10
GLuint const GLchar * name
Definition: glcorearb.h:786
GLuint color
Definition: glcorearb.h:1261
GLboolean r
Definition: glcorearb.h:1222
unsigned int uint
Definition: SYS_Types.h:45