http://www.sim.no/
http://www.coin3d.org/
include
Inventor
misc
SoLightPath.h
1
#ifndef COIN_SOLIGHTPATH_H
2
#define COIN_SOLIGHTPATH_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
#include <Inventor/SbBasic.h>
28
#include <Inventor/lists/SbList.h>
29
30
class
SoNode
;
31
class
SoTempPath
;
32
33
class
COIN_DLL_API
SoLightPath
{
34
public
:
35
SoLightPath
(
SoNode
*node,
const
int
approxlength);
36
SoLightPath
(
const
int
approxlength);
37
~
SoLightPath
();
38
39
void
setHead(
SoNode
*
const
node);
40
void
append(
const
int
childindex);
41
void
push(
const
int
childindex);
42
void
pop(
void
);
43
void
setTail(
const
int
childindex);
44
SoNode
*getTail(
void
)
const
;
45
SoNode
*getHead(
void
)
const
;
46
SoNode
*getNode(
const
int
index)
const
;
47
int
getIndex(
const
int
index)
const
;
48
int
getFullLength()
const
;
49
void
truncate(
const
int
startindex);
50
51
void
makeTempPath(
SoTempPath
*path)
const
;
52
private
:
53
SoNode
*headnode;
54
SbList <int>
indices;
55
};
56
57
#endif // !COIN_SOLIGHTPATH_H
SbList< int >
SoTempPath
The SoTempPath class is used to store temporary paths.
Definition:
SoTempPath.h:29
SoLightPath
The SoLightPath class is a light version of SoPath.
Definition:
SoLightPath.h:33
SoNode
The SoNode class is the base class for nodes used in scene graphs.
Definition:
SoNode.h:47
Copyright © 1998-2010 by
Kongsberg Oil & Gas Technologies
. All rights reserved.
Generated on Mon Jul 27 2020 for Coin by
Doxygen
1.8.18.