http://www.sim.no/
http://www.coin3d.org/
include
Inventor
caches
SoCache.h
1
#ifndef COIN_SOCACHE_H
2
#define COIN_SOCACHE_H
3
4
/**************************************************************************\
5
*
6
* This file is part of the Coin 3D visualization library.
7
* Copyright (C) by Kongsberg Oil & Gas Technologies.
8
*
9
* This library is free software; you can redistribute it and/or
10
* modify it under the terms of the GNU General Public License
11
* ("GPL") version 2 as published by the Free Software Foundation.
12
* See the file LICENSE.GPL at the root directory of this source
13
* distribution for additional information about the GNU GPL.
14
*
15
* For using Coin with software that can not be combined with the GNU
16
* GPL, and for taking advantage of the additional benefits of our
17
* support services, please contact Kongsberg Oil & Gas Technologies
18
* about acquiring a Coin Professional Edition License.
19
*
20
* See http://www.coin3d.org/ for more information.
21
*
22
* Kongsberg Oil & Gas Technologies, Bygdoy Alle 5, 0257 Oslo, NORWAY.
23
* http://www.sim.no/ sales@sim.no coin-support@coin3d.org
24
*
25
\**************************************************************************/
26
27
class
SoState
;
28
class
SoElement
;
29
class
SoCacheP;
30
31
#include <Inventor/SbBasic.h>
32
#include <stddef.h>
// for NULL
33
34
class
COIN_DLL_API
SoCache
{
35
public
:
36
SoCache
(
SoState
*
const
state);
37
38
void
ref(
void
);
39
void
unref(
SoState
* state = NULL);
40
41
void
addElement(
const
SoElement
*
const
elem);
42
43
virtual
void
addCacheDependency(
const
SoState
* state,
44
SoCache
* cache);
45
virtual
SbBool isValid(
const
SoState
* state)
const
;
46
const
SoElement
* getInvalidElement(
const
SoState
*
const
state)
const
;
47
void
invalidate(
void
);
48
49
protected
:
50
virtual
void
destroy(
SoState
* state);
51
virtual
~
SoCache
();
52
53
private
:
54
SoCacheP * pimpl;
55
};
56
57
#endif // !COIN_SOCACHE_H
SoState
The SoState class manages the Coin scenegraph traversal state data.
Definition:
SoState.h:35
SoCache
The SoCache class is the superclass for all internal cache classes.
Definition:
SoCache.h:34
SoElement
SoElement is the abstract base class for all elements.
Definition:
SoElement.h:34
Copyright © 1998-2010 by
Kongsberg Oil & Gas Technologies
. All rights reserved.
Generated on Mon Jan 27 2020 23:41:04 for Coin by
Doxygen
1.8.17.