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
GT_ViewportHookCollector.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: GT_ViewportHookCollector.h (GT Library, C++)
7
*
8
* COMMENTS:
9
*/
10
11
#ifndef __GT_ViewportHookCollector__
12
#define __GT_ViewportHookCollector__
13
14
#include "
GT_API.h
"
15
#include <
GA/GA_PrimitiveTypeId.h
>
16
17
class
GT_API
GT_ViewportHookCollector
18
{
19
public
:
20
static
void
hookPrimitive(
const
GA_PrimitiveTypeId
&prim_type,
21
bool
pass_through);
22
static
void
unhookPrimitive(
const
GA_PrimitiveTypeId
&prim_type);
23
static
void
enable();
// Enable hooks
24
static
void
disable();
// Disable hooks
25
};
26
27
/// Auto-enable/disable viewport hooks.
28
class
GT_API
GT_EnableViewportHook
29
{
30
public
:
31
GT_EnableViewportHook
()
32
{
33
GT_ViewportHookCollector::enable
();
34
}
35
~GT_EnableViewportHook
()
36
{
37
GT_ViewportHookCollector::disable
();
38
}
39
};
40
41
#endif
42
GT_EnableViewportHook
Auto-enable/disable viewport hooks.
Definition:
GT_ViewportHookCollector.h:28
GT_EnableViewportHook::~GT_EnableViewportHook
~GT_EnableViewportHook()
Definition:
GT_ViewportHookCollector.h:35
GT_API
#define GT_API
Definition:
GT_API.h:13
GT_API.h
GT_EnableViewportHook::GT_EnableViewportHook
GT_EnableViewportHook()
Definition:
GT_ViewportHookCollector.h:31
GA_PrimitiveTypeId.h
GT_ViewportHookCollector::enable
static void enable()
GT_ViewportHookCollector::disable
static void disable()
GA_PrimitiveTypeId
Definition:
GA_PrimitiveTypeId.h:20
GT_ViewportHookCollector
Definition:
GT_ViewportHookCollector.h:17
GT
GT_ViewportHookCollector.h
Generated on Tue Dec 17 2024 03:39:45 for HDK by
1.8.6