Open Inventor Release 2023.2.3
 
Loading...
Searching...
No Matches
SoMFDataMeasure.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-2023 BY FEI S.A.S, ***
17 *** BORDEAUX, FRANCE ***
18 *** ALL RIGHTS RESERVED ***
19**=======================================================================*/
20/*=======================================================================
21** Author : David Beilloin (Aug 2013)
22**=======================================================================*/
23
24#ifndef _SO_MF_DATA_MEASURE_H_
25#define _SO_MF_DATA_MEASURE_H_
26
27#include <ImageViz/SoImageViz.h>
28
31class SoDEPRECATED SoMFDataMeasure : public SoMField {
49
54
55public:
59 const SoDataMeasure* findMeasureByName(const SbString& measureName);
60
72
75
76 private:
77 static void initClass();
78 static void exitClass();
79
80 // Update a copied field to use the copy of each uniform shader parameter if there is one
81 virtual void fixCopy(SbBool copyConnections);
82
83 // Override this to also check the stored uniform shader parameters
84 virtual SbBool referencesCopy() const;
85
86private:
87 // Override this to maintain write-references in uniform shader parameters
88 virtual void countWriteRefs(SoOutput *out) const;
89
90 // Changes value in field without doing other notification stuff.
91 // Keeps track of references and auditors.
92 void setVal(int index, SoDataMeasure *newValue);
93
95 static bool hasGivenName(const SbString& measureName, const SoDataMeasure* measure);
96
97 SoDataMeasure** m_oldValues;
98 int m_oldNum;
99};
100
101#endif /* _SO_MF_DATA_MEASURE_H_ */
#define SO_MFIELD_REQUIRED_HEADER(className)
Definition SoSubField.h:311
#define SO_MFIELD_CONSTRUCTOR_HEADER(className)
Definition SoSubField.h:320
#define SO_MFIELD_SETVALUESPOINTER_HEADER(userType)
#define SO_MFIELD_VALUE_HEADER(className, valueType, valueRef)
Definition SoSubField.h:335
Class for smart character strings.
Definition SbString.h:202
<a href="IconLegend.html"><img src="extIP.gif" alt="ImageViz" border="0"></a> Abstract base class fo...
<a href="IconLegend.html"><img src="extIP.gif" alt="ImageViz" border="0"></a> Multiple-value field c...
const SoDataMeasure * findMeasureByName(const SbString &measureName)
Find the first measure with the given measure name.
void finishEditing()
Indicates that batch edits have finished.
SoDataMeasure ** startEditing()
Returns a pointer to the internally maintained array that can be modified.
Base class for all multiple-valued fields.
Definition SoMField.h:134
Used to write Open Inventor data files.
Definition SoOutput.h:185
int SbBool
Boolean type.
Definition SbBase.h:87