Open Inventor Release 2024.1.0
 
Loading...
Searching...
No Matches
SoSFArray3D.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-2019 BY FEI S.A.S, ***
17 *** BORDEAUX, FRANCE ***
18 *** ALL RIGHTS RESERVED ***
19**=======================================================================*/
20/*=======================================================================
21** Author : B. Grange (Jan 2005)
22**=======================================================================*/
23
24#ifndef _SO_SF_ARRAY_3D_
25#define _SO_SF_ARRAY_3D_
26
30
31class SoMemoryObject;
32
89class SoSFArray3D : public SoSFArray
90{
93
94public:
98
103 void setValue(const SbVec3i32 &size, const SbDataType& dataType,
104 unsigned int numSigBits, const void* data,
105 CopyPolicy copy);
106
112 unsigned int numSigBits, SoMemoryObject* memObj,
113 CopyPolicy copy);
114
118 inline unsigned int getNumSigBits() const;
119
124 virtual int operator ==(const SoSFArray3D &f) const;
125
126private:
127 static void initClass();
128 static void exitClass();
129
133 void setValue(const SbVec3i32 &size, const SbDataType& dataType, const void* data, CopyPolicy copy);
134
138 void setValue(const SbVec3i32 &size, SoMemoryObject* memObj, CopyPolicy copy);
139
140private:
142 using SoSFArray::operator==;
143
147 virtual SbBool readValue(SoInput *in);
148
152 virtual void writeValue(SoOutput *out) const ;
153
155 unsigned int m_numSigBits;
156
157};
158
159/*******************************************************************************/
160unsigned int
162{
163 return m_numSigBits;
164}
165
166#endif
167
168
#define SO_SFIELD_CONSTRUCTOR_HEADER(className)
Definition SoSubField.h:213
#define SO_SFIELD_REQUIRED_HEADER(className)
Definition SoSubField.h:204
Class encoding a data type.
Definition SbDataType.h:58
3D vector class.
Definition SbVec.h:1517
Used to read Open Inventor data files.
Definition SoInput.h:363
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Handle memory bu...
Used to write Open Inventor data files.
Definition SoOutput.h:185
Field containing a 3D array value.
Definition SoSFArray3D.h:90
unsigned int getNumSigBits() const
Returns the number of significant bits.
void setValue(const SbVec3i32 &size, unsigned int numSigBits, SoMemoryObject *memObj, CopyPolicy copy)
Fill the array with data of the specified dimensions and type using the specified copy policy.
virtual int operator==(const SoSFArray3D &f) const
Returns TRUE if all of the values of this field equal those of the given field f.
void setValue(const SbVec3i32 &size, const SbDataType &dataType, unsigned int numSigBits, const void *data, CopyPolicy copy)
Fill the array with data of the specified dimensions and type using the specified copy policy.
Abstract Field containing an array of values.
Definition SoSFArray.h:50
void * getValue() const
Returns a read-only pointer to the array's values.
Definition SoSFArray.h:253
const SbVec3i32 & getSize() const
Returns the dimensions of the array.
Definition SoSFArray.h:263
CopyPolicy
SoSFArray may be manipulating some large amounts of memory.
Definition SoSFArray.h:63
void setValue(const SbVec3i32 &size, const SbDataType &dataType, const void *data, CopyPolicy copy=COPY)
Fill the array with data of the specified dimensions and type using the specified copy policy.
void * startEditing(SbVec3i32 &size, SbDataType &dataType)
Returns a pointer to the internally maintained array that can be modified.
int SbBool
Boolean type.
Definition SbBase.h:87
size_t size() const