Open Inventor Release 2024.1.2
 
Loading...
Searching...
No Matches
SoLDMTileID.h
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-2024 BY FEI S.A.S, ***
17 *** BORDEAUX, FRANCE ***
18 *** ALL RIGHTS RESERVED ***
19**=======================================================================*/
20/*=======================================================================
21** Author : J.HUMMEL (Dec 2002)
22** Modified by : T.DUFOUR (MMM yyyy)
23**=======================================================================*/
24#ifndef _SO_LDM_TILE_ID_
25#define _SO_LDM_TILE_ID_
26
27#include <Inventor/nodes/SoSubNode.h>
28
29#define LDM_TILE_ID_TYPE int64_t
30
64
65 public:
66
71 :m_id(0) {}
72
76 SoLDMTileID( LDM_TILE_ID_TYPE tileID)
77 :m_id(tileID) {}
78
82 inline bool operator==(const SoLDMTileID&b) const {return (m_id == b.m_id);}
86 inline bool operator!=(const SoLDMTileID&b) const {return (m_id != b.m_id);}
90 inline bool operator<=(const SoLDMTileID&b) const {return m_id <= b.m_id;}
91
95 inline bool operator>=(const SoLDMTileID&b) const {return m_id >= b.m_id;}
96
100 inline bool operator<(const SoLDMTileID&b) const {return m_id < b.m_id;}
101
105 inline bool operator>(const SoLDMTileID&b) const {return m_id > b.m_id;}
106
107
111 inline LDM_TILE_ID_TYPE getID() const
112 { return m_id; }
113
117 inline SoLDMTileID &operator++();
118
122 inline SoLDMTileID operator++(int);
123
127 inline SoLDMTileID &operator--();
128
132 inline SoLDMTileID operator--(int);
133
134private:
135 LDM_TILE_ID_TYPE m_id;
136};
137
138
139/*******************************************************************************/
142{
143 m_id++;
144 return *this;
145}
146
147/*******************************************************************************/
150{
151 SoLDMTileID tileId = *this;
152 ++(*this);
153
154 return tileId;
155}
156
157/*******************************************************************************/
160{
161 m_id--;
162 return *this;
163}
164
165/*******************************************************************************/
168{
169 SoLDMTileID tileId = *this;
170 --(*this);
171
172 return tileId;
173}
174
178inline std::ostream& operator << (std::ostream& os, const SoLDMTileID& tile)
179{
180 return os << "(" << tile.getID() << ")";
181}
182
183#endif // _SO_LDM_TILE_ID_
184
185
<a href="IconLegend.html"><img src="extLDM.gif" alt="Large Data Management" border="0"></a> Tile ID
Definition SoLDMTileID.h:63
bool operator>=(const SoLDMTileID &b) const
Relational (greater than or equal to) operator.
Definition SoLDMTileID.h:95
bool operator==(const SoLDMTileID &b) const
Equality comparison operator.
Definition SoLDMTileID.h:82
SoLDMTileID(LDM_TILE_ID_TYPE tileID)
Constructor from ID value.
Definition SoLDMTileID.h:76
bool operator!=(const SoLDMTileID &b) const
Inequality comparison operator.
Definition SoLDMTileID.h:86
SoLDMTileID & operator++()
++ Prefix, increment the tile id
LDM_TILE_ID_TYPE getID() const
Returns the tile ID.
bool operator<=(const SoLDMTileID &b) const
Relational (less than or equal to) operator.
Definition SoLDMTileID.h:90
SoLDMTileID()
Constructor.
Definition SoLDMTileID.h:70
bool operator<(const SoLDMTileID &b) const
Relational (less than) operator.
SoLDMTileID & operator--()
– Prefix, increment the tile id
bool operator>(const SoLDMTileID &b) const
Relational (greater than) operator.