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 
22 class UT_Color;
23 class RE_Render;
24 class DM_SceneManager;
25 class GUI_DetailLook;
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_Render &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_DetailLook *myDetailLook;
45 };
46 
47 #endif
48 
GLuint color
Definition: glcorearb.h:1260
#define DM_API
Definition: DM_API.h:10
GLuint const GLchar * name
Definition: glcorearb.h:785
unsigned int uint
Definition: SYS_Types.h:40
GLboolean r
Definition: glcorearb.h:1221