HDK
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
GUI_VisInterface.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: GUI_VisInterface.h ( GR Library, C++)
7
*
8
* COMMENTS:
9
* Basic definition needed to access functions defined in VIS which is
10
* set above the GUI level.
11
*/
12
13
#ifndef __GUI_VisInterface_h__
14
#define __GUI_VisInterface_h__
15
16
#include "
GUI_API.h
"
17
#include "
GUI_PrimitiveHook.h
"
18
#include <
GR/GR_UpdateParms.h
>
19
#include <
VIS/VIS_Defines.h
>
20
21
class
GUI_DetailLook
;
22
class
GUI_GeoRender
;
23
24
typedef
VIS_Context
GUI_VisContext
;
25
26
enum
GUI_VisFlags
27
{
28
GUI_VIS_FLAG_NONE
= 0x0,
29
GUI_VIS_FLAG_SKIP_RENDER
= 0x1
30
};
31
32
class
GUI_API
GUI_VisInterface
33
{
34
public
:
35
GUI_VisInterface
() {}
36
virtual
~GUI_VisInterface
() {}
37
38
virtual
exint
bumpClock() = 0;
39
40
virtual
41
GT_PrimitiveHandle
filterPrimitive(
GUI_GeoRender
*geo,
42
const
GT_PrimitiveHandle
>_prm,
43
const
GEO_Primitive
*geo_prm,
44
const
GR_RenderInfo
*info,
45
GR_PrimAcceptResult
&processed,
46
UT_Array<GUI_VisFlags>
&vis_flags) = 0;
47
48
virtual
void
createPrimitive(
GUI_GeoRender
*geo,
49
const
GT_PrimitiveHandle
>_prim,
50
const
GEO_Primitive
*geo_prim,
51
const
GR_Primitive
*gr_prim,
52
const
GR_RenderInfo
*info,
53
const
char
*
cache_name
,
54
GR_PrimAcceptResult
&processed,
55
UT_Array<GR_Primitive *>
&prims) = 0;
56
57
virtual
58
GR_UpdateReason
getUpdateReason(
const
GUI_GeoRender
*geo,
59
bool
&refine_on_update) = 0;
60
61
virtual
void
getRequestedAttributes(
62
const
GUI_DetailLook
*look,
63
UT_Map<UT_StringRef, int>
&needed) = 0;
64
65
virtual
bool
isHookVisualizerActive(
const
char
*vis_name,
66
GUI_VisContext
context) = 0;
67
68
virtual
69
GUI_VisFlags
getActiveVisFlags(
const
GUI_GeoRender
*geo,
70
UT_Array<GUI_VisFlags>
&vis_flags,
71
GUI_VisContext
context,
72
int
display_set) = 0;
73
74
static
void
setHandler
(
GUI_VisInterface
*handler)
75
{ theHandler = handler; }
76
77
static
78
GUI_VisInterface
*
getHandler
()
79
{
return
theHandler; }
80
81
static
GUI_VisInterface
*
theHandler
;
82
};
83
84
#endif
GUI_GeoRender
Definition:
GUI_GeoRender.h:84
GUI_VisInterface
Definition:
GUI_VisInterface.h:32
UT_Map< UT_StringRef, int >
GUI_VisFlags
GUI_VisFlags
Definition:
GUI_VisInterface.h:26
exint
int64 exint
Definition:
SYS_Types.h:125
GT_Names::cache_name
GT_API const UT_StringHolder cache_name
VIS_Context
Definition:
VIS_Defines.h:21
GUI_VIS_FLAG_SKIP_RENDER
Definition:
GUI_VisInterface.h:29
UT_Array
Definition:
BV_KDOPTree.h:18
GUI_VisInterface::setHandler
static void setHandler(GUI_VisInterface *handler)
Definition:
GUI_VisInterface.h:74
GR_UpdateParms.h
GR_Primitive
Definition:
GR_Primitive.h:55
GUI_API
#define GUI_API
Definition:
GUI_API.h:10
GUI_DetailLook
Definition:
GUI_DetailLook.h:64
GR_UpdateReason
GR_UpdateReason
Definition:
GR_Defines.h:312
UT_IntrusivePtr< GT_Primitive >
GUI_VisInterface::~GUI_VisInterface
virtual ~GUI_VisInterface()
Definition:
GUI_VisInterface.h:36
GR_PrimAcceptResult
GR_PrimAcceptResult
Definition:
GR_Defines.h:359
GUI_VisContext
VIS_Context GUI_VisContext
Definition:
GUI_VisInterface.h:22
GR_RenderInfo
Definition:
GR_RenderInfo.h:29
VIS_Defines.h
GUI_VIS_FLAG_NONE
Definition:
GUI_VisInterface.h:28
GUI_PrimitiveHook.h
GUI_VisInterface::GUI_VisInterface
GUI_VisInterface()
Definition:
GUI_VisInterface.h:35
GUI_API.h
GEO_Primitive
Definition:
GEO_Primitive.h:41
GUI_VisInterface::theHandler
static GUI_VisInterface * theHandler
Definition:
GUI_VisInterface.h:81
GUI_VisInterface::getHandler
static GUI_VisInterface * getHandler()
Definition:
GUI_VisInterface.h:78
GUI
GUI_VisInterface.h
Generated on Fri Nov 8 2024 03:39:19 for HDK by
1.8.6