1 /*---------------------------------------------------------------------------*\
5 * Copyright (C) 2000-2006 by the OpenSG Forum *
7 * contact: dirk@opensg.org, gerrit.voss@vossg.org, jbehr@zgdv.de *
9 \*---------------------------------------------------------------------------*/
10 /*---------------------------------------------------------------------------*\
13 * This library is free software; you can redistribute it and/or modify it *
14 * under the terms of the GNU Library General Public License as published *
15 * by the Free Software Foundation, version 2. *
17 * This library is distributed in the hope that it will be useful, but *
18 * WITHOUT ANY WARRANTY; without even the implied warranty of *
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
20 * Library General Public License for more details. *
22 * You should have received a copy of the GNU Library General Public *
23 * License along with this library; if not, write to the Free Software *
24 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. *
26 \*---------------------------------------------------------------------------*/
27 /*---------------------------------------------------------------------------*\
35 \*---------------------------------------------------------------------------*/
37 /*****************************************************************************\
38 *****************************************************************************
40 ** This file is automatically generated. **
42 ** Any changes made to this file WILL be lost when it is **
43 ** regenerated, which can become necessary at any time. **
45 ** Do not change this file, changes should be done in the derived **
46 ** class TestMultiPartitionStage!
48 *****************************************************************************
49 \*****************************************************************************/
55 //! access the type of the class
57 OSG::FieldContainerType &TestMultiPartitionStageBase::getClassType(void)
62 //! access the numerical type of the class
64 OSG::UInt32 TestMultiPartitionStageBase::getClassTypeId(void)
70 OSG::UInt16 TestMultiPartitionStageBase::getClassGroupId(void)
72 return _type.getGroupId();
75 /*------------------------------ get -----------------------------------*/
77 //! Get the value of the TestMultiPartitionStage::_sfMessage field.
80 std::string &TestMultiPartitionStageBase::editMessage(void)
82 editSField(MessageFieldMask);
84 return _sfMessage.getValue();
87 //! Get the value of the TestMultiPartitionStage::_sfMessage field.
89 const std::string &TestMultiPartitionStageBase::getMessage(void) const
91 return _sfMessage.getValue();
94 //! Set the value of the TestMultiPartitionStage::_sfMessage field.
96 void TestMultiPartitionStageBase::setMessage(const std::string &value)
98 editSField(MessageFieldMask);
100 _sfMessage.setValue(value);
102 //! Get the value of the TestMultiPartitionStage::_sfNumPartitions field.
105 Int32 &TestMultiPartitionStageBase::editNumPartitions(void)
107 editSField(NumPartitionsFieldMask);
109 return _sfNumPartitions.getValue();
112 //! Get the value of the TestMultiPartitionStage::_sfNumPartitions field.
114 Int32 TestMultiPartitionStageBase::getNumPartitions(void) const
116 return _sfNumPartitions.getValue();
119 //! Set the value of the TestMultiPartitionStage::_sfNumPartitions field.
121 void TestMultiPartitionStageBase::setNumPartitions(const Int32 value)
123 editSField(NumPartitionsFieldMask);
125 _sfNumPartitions.setValue(value);
127 //! Get the value of the TestMultiPartitionStage::_sfUseGroup field.
130 bool &TestMultiPartitionStageBase::editUseGroup(void)
132 editSField(UseGroupFieldMask);
134 return _sfUseGroup.getValue();
137 //! Get the value of the TestMultiPartitionStage::_sfUseGroup field.
139 bool TestMultiPartitionStageBase::getUseGroup(void) const
141 return _sfUseGroup.getValue();
144 //! Set the value of the TestMultiPartitionStage::_sfUseGroup field.
146 void TestMultiPartitionStageBase::setUseGroup(const bool value)
148 editSField(UseGroupFieldMask);
150 _sfUseGroup.setValue(value);
153 //! Get the value of the \a index element the TestMultiPartitionStage::_mfOrder field.
155 Int32 TestMultiPartitionStageBase::getOrder(const UInt32 index) const
157 return _mfOrder[index];
161 Int32 &TestMultiPartitionStageBase::editOrder(const UInt32 index)
163 editMField(OrderFieldMask, _mfOrder);
165 return _mfOrder[index];
170 #ifdef OSG_MT_CPTR_ASPECT
172 void TestMultiPartitionStageBase::execSync ( TestMultiPartitionStageBase *pFrom,
173 ConstFieldMaskArg whichField,
174 AspectOffsetStore &oOffsets,
175 ConstFieldMaskArg syncMode,
176 const UInt32 uiSyncInfo)
178 Inherited::execSync(pFrom, whichField, oOffsets, syncMode, uiSyncInfo);
180 if(FieldBits::NoField != (MessageFieldMask & whichField))
181 _sfMessage.syncWith(pFrom->_sfMessage);
183 if(FieldBits::NoField != (NumPartitionsFieldMask & whichField))
184 _sfNumPartitions.syncWith(pFrom->_sfNumPartitions);
186 if(FieldBits::NoField != (OrderFieldMask & whichField))
187 _mfOrder.syncWith(pFrom->_mfOrder,
192 if(FieldBits::NoField != (UseGroupFieldMask & whichField))
193 _sfUseGroup.syncWith(pFrom->_sfUseGroup);
199 const Char8 *TestMultiPartitionStageBase::getClassname(void)
201 return "TestMultiPartitionStage";
203 OSG_GEN_CONTAINERPTR(TestMultiPartitionStage);