Open Inventor Release 2024.1.0
 
Loading...
Searching...
No Matches
SbProjectionCoordinates.h
Go to the documentation of this file.
1/*=======================================================================
2 *** THE CONTENT OF THIS WORK IS PROPRIETARY TO FEI S.A.S, (FEI S.A.S.), ***
3 *** AND IS DISTRIBUTED UNDER A LICENSE AGREEMENT. ***
4 *** ***
5 *** REPRODUCTION, DISCLOSURE, OR USE, IN WHOLE OR IN PART, OTHER THAN AS ***
6 *** SPECIFIED IN THE LICENSE ARE NOT TO BE UNDERTAKEN EXCEPT WITH PRIOR ***
7 *** WRITTEN AUTHORIZATION OF FEI S.A.S. ***
8 *** ***
9 *** RESTRICTED RIGHTS LEGEND ***
10 *** USE, DUPLICATION, OR DISCLOSURE BY THE GOVERNMENT OF THE CONTENT OF THIS ***
11 *** WORK OR RELATED DOCUMENTATION IS SUBJECT TO RESTRICTIONS AS SET FORTH IN ***
12 *** SUBPARAGRAPH (C)(1) OF THE COMMERCIAL COMPUTER SOFTWARE RESTRICTED RIGHT ***
13 *** CLAUSE AT FAR 52.227-19 OR SUBPARAGRAPH (C)(1)(II) OF THE RIGHTS IN ***
14 *** TECHNICAL DATA AND COMPUTER SOFTWARE CLAUSE AT DFARS 52.227-7013. ***
15 *** ***
16 *** COPYRIGHT (C) 1996-2014 BY FEI S.A.S, ***
17 *** BORDEAUX, FRANCE ***
18 *** ALL RIGHTS RESERVED ***
19**=======================================================================*/
20/*=======================================================================
21** Author : G.TALLEC (May 2007)
22**=======================================================================*/
23
24#ifndef _SB_PROJECTION_COORDINATES
25#define _SB_PROJECTION_COORDINATES
26
27#include <Inventor/SbLinear.h>
28#include <Inventor/SbString.h>
29
30#include <Inventor/STL/vector>
31
32#if defined(_WIN32)
33#pragma warning ( push )
34#pragma warning ( disable: 4251 )
35#endif
36
37class SoNode;
38class SoProjection;
39
61{
62public:
63
68
73
78
83 SbVec3f *getCoordinates(){return m_projCoords;}
84
88 void setProjection( SoProjection *projection){ m_projection = projection;}
89
93 void resetCache(SoNode *node);
94
98 void initCoordinates(SoNode *node,int size);
99
104
105private:
106
110 void init();
111
115 int m_maxSize;
116
120 int m_size;
121
125 SbVec3f *m_projCoords;
126
130 SoProjection *m_projection;
131
132private:
136 uint64_t m_nodeId;
137
141 uint64_t m_projNodeId;
142};
143
144#if defined(_WIN32)
145#pragma warning ( pop )
146#endif
147
148#endif /* _SB_PROJECTION_ */
149
Cache projected coordinates.
SbBool cacheIsValid(SoNode *node)
Return whether the cache is valid or not.
void resetCache(SoNode *node)
Reset the cache.
void setProjection(SoProjection *projection)
Set associated projection.
~SbProjectionCoordinates()
Destructor.
SbVec3f * getCoordinates()
Return coordinates.
void initCoordinates(SoNode *node, int size)
Initialisation.
SbProjectionCoordinates(SoProjection *projection)
Constructor.
SbProjectionCoordinates()
Constructor.
3D vector class.
Definition SbVec.h:932
Abstract base class for all database nodes.
Definition SoNode.h:145
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Coordinate proje...
int SbBool
Boolean type.
Definition SbBase.h:87
size_t size() const