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
GU_TextureUnwrap.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: GU Library (C++)
7
*
8
* COMMENTS: Texture coordinate unwrapping code.
9
*
10
*/
11
#ifndef __GU_TextureUnwrap_h__
12
#define __GU_TextureUnwrap_h__
13
14
#include "
GU_API.h
"
15
#include <
GA/GA_Handle.h
>
16
#include <
UT/UT_Matrix3.h
>
17
#include <
UT/UT_StringHolder.h
>
18
#include <
UT/UT_Vector3Array.h
>
19
20
class
GA_PrimitiveGroup
;
21
class
GU_Detail
;
22
23
class
GU_API
GU_TextureUnwrapParms
24
{
25
public
:
26
enum
LayoutType
27
{
28
LAYOUT_STRIP = 0,
29
LAYOUT_SQUARE = 1
30
};
31
32
enum
ScaleType
33
{
34
SCALE_NONE = 0,
35
SCALE_UNIFORM = 1,
36
SCALE_STRETCH = 2
37
};
38
39
GU_TextureUnwrapParms
();
40
41
void
initializeTetrahedron();
42
void
initialize5();
43
void
initializeCube();
44
void
initialize8();
45
46
void
initializeGeometry(
const
GU_Detail
*gdp,
47
const
GA_PrimitiveGroup
*group);
48
49
// Build polygon geometry representation of the planes being
50
// projected onto.
51
static
void
buildGeometry4(
GU_Detail
*gdp);
52
static
void
buildGeometry5(
GU_Detail
*gdp);
53
static
void
buildGeometry6(
GU_Detail
*gdp);
54
static
void
buildGeometry8(
GU_Detail
*gdp);
55
56
GA_RWHandleV3
myAttrib
;
57
58
const
GA_PrimitiveGroup
*
myGroup
;
59
60
UT_Vector3Array
myPlaneNormals
;
61
UT_Vector3Array
myPlaneXAxes
;
62
63
ScaleType
myScaleType
;
64
LayoutType
myLayoutType
;
65
66
float
mySpacing
;
67
};
68
69
70
class
GU_API
GU_TextureUnwrap
71
{
72
public
:
73
74
GU_TextureUnwrap
(
GU_Detail
*gdp);
75
~
GU_TextureUnwrap
();
76
77
78
// Performs the extrusion
79
void
unwrap(
const
GU_TextureUnwrapParms
&parms);
80
81
private
:
82
GU_Detail
*myGdp;
83
};
84
85
#endif
GA_PrimitiveGroup
Definition:
GA_ElementGroup.h:74
GU_TextureUnwrapParms::myPlaneXAxes
UT_Vector3Array myPlaneXAxes
Definition:
GU_TextureUnwrap.h:61
GU_TextureUnwrapParms::LayoutType
LayoutType
Definition:
GU_TextureUnwrap.h:26
UT_ValArray< UT_Vector3 >
GU_TextureUnwrapParms::myGroup
const GA_PrimitiveGroup * myGroup
Definition:
GU_TextureUnwrap.h:58
GU_TextureUnwrapParms::myAttrib
GA_RWHandleV3 myAttrib
Definition:
GU_TextureUnwrap.h:56
GU_TextureUnwrapParms::mySpacing
float mySpacing
Definition:
GU_TextureUnwrap.h:66
GU_TextureUnwrap
Definition:
GU_TextureUnwrap.h:70
GA_RWHandleT< UT_Vector3F >
GA_Handle.h
GU_API
#define GU_API
Definition:
GU_API.h:14
UT_StringHolder.h
UT_Vector3Array.h
GU_Detail
Definition:
GU_Detail.h:154
GU_TextureUnwrapParms::myPlaneNormals
UT_Vector3Array myPlaneNormals
Definition:
GU_TextureUnwrap.h:60
GU_TextureUnwrapParms
Definition:
GU_TextureUnwrap.h:23
GU_API.h
GU_TextureUnwrapParms::ScaleType
ScaleType
Definition:
GU_TextureUnwrap.h:32
GU_TextureUnwrapParms::myLayoutType
LayoutType myLayoutType
Definition:
GU_TextureUnwrap.h:64
UT_Matrix3.h
GU_TextureUnwrapParms::myScaleType
ScaleType myScaleType
Definition:
GU_TextureUnwrap.h:63
GU
GU_TextureUnwrap.h
Generated on Tue Dec 17 2024 03:39:49 for HDK by
1.8.6