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
VISF_PrimitiveType.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: VISF_PrimitiveType.h (VIS Library, C++)
7
*
8
* COMMENTS:
9
* A simple class encapsulating the GT/GEO combination of
10
* primitive types used for a primitive hook.
11
*/
12
13
#ifndef __VISF_PrimitiveType__
14
#define __VISF_PrimitiveType__
15
16
#include "
VISF_API.h
"
17
18
#include <
GT/GT_PrimitiveTypes.h
>
19
#include <
GA/GA_PrimitiveTypeId.h
>
20
#include <
SYS/SYS_Types.h
>
21
22
struct
VISF_PrimitiveType
23
{
24
VISF_PrimitiveType
();
25
VISF_PrimitiveType
(
GT_PrimitiveType
gt_type);
26
VISF_PrimitiveType
(
GA_PrimitiveTypeId
geo_type);
27
VISF_PrimitiveType
(
GT_PrimitiveType
gt_type,
GA_PrimitiveTypeId
geo_type);
28
29
bool
operator==
(
const
VISF_PrimitiveType
&other)
const
;
30
bool
isValid
()
const
;
31
bool
isMatch
(
GT_PrimitiveType
gt_type)
const
;
32
bool
isMatch
(
GA_PrimitiveTypeId
geo_type)
const
;
33
bool
isMatch
(
GT_PrimitiveType
gt_type,
34
GA_PrimitiveTypeId
geo_type)
const
;
35
bool
isGTType
()
const
;
36
bool
isGEOType
()
const
;
37
38
GT_PrimitiveType
myGTType
;
39
int
myGEOType
;
40
};
41
42
43
inline
size_t
hash_value
(
const
VISF_PrimitiveType
&vt)
44
{
45
return
(
int64
(vt.
myGTType
) << 32) |
int64
(vt.
myGEOType
);
46
}
47
48
#endif
VISF_PrimitiveType::isGTType
bool isGTType() const
VISF_PrimitiveType::isValid
bool isValid() const
VISF_PrimitiveType::operator==
bool operator==(const VISF_PrimitiveType &other) const
SYS_Types.h
VISF_PrimitiveType::myGEOType
int myGEOType
Definition:
VISF_PrimitiveType.h:39
hash_value
size_t hash_value(const VISF_PrimitiveType &vt)
Definition:
VISF_PrimitiveType.h:43
VISF_PrimitiveType
Definition:
VISF_PrimitiveType.h:22
int64
long long int64
Definition:
SYS_Types.h:116
VISF_PrimitiveType::isGEOType
bool isGEOType() const
GA_PrimitiveTypeId.h
GT_PrimitiveType
GT_PrimitiveType
Definition:
GT_PrimitiveTypes.h:16
VISF_PrimitiveType::VISF_PrimitiveType
VISF_PrimitiveType()
GT_PrimitiveTypes.h
VISF_API.h
VISF_PrimitiveType::isMatch
bool isMatch(GT_PrimitiveType gt_type) const
GA_PrimitiveTypeId
Definition:
GA_PrimitiveTypeId.h:20
VISF_PrimitiveType::myGTType
GT_PrimitiveType myGTType
Definition:
VISF_PrimitiveType.h:38
VISF
VISF_PrimitiveType.h
Generated on Fri Apr 26 2024 03:17:09 for HDK by
1.8.6