1 /*---------------------------------------------------------------------------*\
5 * Copyright(C) 2000-2002 by the OpenSG Forum *
9 * contact: dirk@opensg.org, gerrit.voss@vossg.org, jbehr@zgdv.de *
11 \*---------------------------------------------------------------------------*/
12 /*---------------------------------------------------------------------------*\
15 * This library is free software; you can redistribute it and/or modify it *
16 * under the terms of the GNU Library General Public License as published *
17 * by the Free Software Foundation, version 2. *
19 * This library is distributed in the hope that it will be useful, but *
20 * WITHOUT ANY WARRANTY; without even the implied warranty of *
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
22 * Library General Public License for more details. *
24 * You should have received a copy of the GNU Library General Public *
25 * License along with this library; if not, write to the Free Software *
26 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. *
28 \*---------------------------------------------------------------------------*/
29 /*---------------------------------------------------------------------------*\
37 \*---------------------------------------------------------------------------*/
39 //---------------------------------------------------------------------------
41 //---------------------------------------------------------------------------
46 #include "OSGConfig.h"
48 #include "OSGFullStateChunk.h"
53 /***************************************************************************\
55 \***************************************************************************/
57 StateChunkClass
FullStateChunk::_class("FullStateChunk", 1, 6);
59 /***************************************************************************\
61 \***************************************************************************/
63 void FullStateChunk::initMethod(InitPhase ePhase
)
65 Inherited::initMethod(ePhase
);
68 /***************************************************************************\
70 \***************************************************************************/
72 /*-------------------------------------------------------------------------*\
74 \*-------------------------------------------------------------------------*/
77 /*------------- constructors & destructors --------------------------------*/
79 FullStateChunk::FullStateChunk(void) :
84 FullStateChunk::FullStateChunk(const FullStateChunk
&source
) :
89 FullStateChunk::~FullStateChunk(void)
93 /*------------------------------- Sync -----------------------------------*/
95 void FullStateChunk::changed(ConstFieldMaskArg whichField
,
99 Inherited::changed(whichField
, origin
, details
);
102 /*------------------------------ Output ----------------------------------*/
104 void FullStateChunk::dump( UInt32
OSG_CHECK_ARG(uiIndent
),
105 const BitVector
OSG_CHECK_ARG(bvFlags
)) const
107 SLOG
<< "Dump FullStateChunk NI" << std::endl
;
111 /*---------------------- Chunk Class Access -------------------------------*/
113 const StateChunkClass
*FullStateChunk::getClass(void) const
118 void FullStateChunk::activate(DrawEnv
*,
121 SFATAL
<< "FullStateChunk::activate" << std::endl
;
124 void FullStateChunk::changeFrom(DrawEnv
*,
128 SFATAL
<< "FullStateChunk::changeFrom" << std::endl
;
131 void FullStateChunk::deactivate(DrawEnv
*,
134 SFATAL
<< "FullStateChunk::deactivate" << std::endl
;
137 /*-------------------------- Comparison -----------------------------------*/
139 /*! Calculate how expensive it is to switch from one instance of the chunk
140 class to another. In most cases not implemented yet, will return 0.
143 Real32
FullStateChunk::switchCost(StateChunk
*OSG_CHECK_ARG(chunk
))
148 bool FullStateChunk::operator <(const StateChunk
&other
) const
150 return this < &other
;
153 /*! Compare two chunks. In most cases not implemented yet, will return false.
156 bool FullStateChunk::operator ==(const StateChunk
&OSG_CHECK_ARG(other
)) const
161 bool FullStateChunk::operator !=(const StateChunk
&other
) const
163 return !(*this == other
);