ATLAS Offline Software
Loading...
Searching...
No Matches
SoGenericBox.cxx File Reference
#include "VP1HEPVis/nodes/SoGenericBox.h"
#include <Inventor/SbBox.h>
#include <Inventor/actions/SoPickAction.h>
#include <Inventor/nodes/SoSeparator.h>
#include <Inventor/nodes/SoIndexedFaceSet.h>
#include <Inventor/nodes/SoIndexedLineSet.h>
#include <Inventor/SoPrimitiveVertex.h>
#include <Inventor/C/glue/gl.h>
#include <Inventor/elements/SoGLCacheContextElement.h>
#include <iostream>

Go to the source code of this file.

Macros

#define trdV(i)

Variables

static const int SOGENERICBOX_NPOINTS =8
static const int SOGENERICBOX_NFACES =6
static int sogenericbox_vindices []
static int sogenericbox_vindices_foraltrepfaces [5 *SOGENERICBOX_NFACES]
static int sogenericbox_vindices_foraltreplines [20]

Macro Definition Documentation

◆ trdV

#define trdV ( i)
Value:
glVertex3fv(static_cast<const GLfloat*>(&m_points[i*3]));

Variable Documentation

◆ SOGENERICBOX_NFACES

const int SOGENERICBOX_NFACES =6
static

Definition at line 31 of file SoGenericBox.cxx.

◆ SOGENERICBOX_NPOINTS

const int SOGENERICBOX_NPOINTS =8
static

Definition at line 30 of file SoGenericBox.cxx.

◆ sogenericbox_vindices

int sogenericbox_vindices[]
static
Initial value:
=
{
3, 2, 1, 0,
4, 5, 6, 7,
0, 1, 5, 4,
1, 2, 6, 5,
2, 3, 7, 6,
3, 0, 4, 7
}

Definition at line 33 of file SoGenericBox.cxx.

33 {
34 3, 2, 1, 0,
35 4, 5, 6, 7,
36 0, 1, 5, 4,
37 1, 2, 6, 5,
38 2, 3, 7, 6,
39 3, 0, 4, 7
40};

◆ sogenericbox_vindices_foraltrepfaces

int sogenericbox_vindices_foraltrepfaces[5 *SOGENERICBOX_NFACES]
static
Initial value:
=
{
3, 2, 1, 0, SO_END_FACE_INDEX,
4, 5, 6, 7, SO_END_FACE_INDEX,
0, 1, 5, 4, SO_END_FACE_INDEX,
1, 2, 6, 5, SO_END_FACE_INDEX,
2, 3, 7, 6, SO_END_FACE_INDEX,
3, 0, 4, 7, SO_END_FACE_INDEX
}

Definition at line 43 of file SoGenericBox.cxx.

43 {
44 3, 2, 1, 0, SO_END_FACE_INDEX,
45 4, 5, 6, 7, SO_END_FACE_INDEX,
46 0, 1, 5, 4, SO_END_FACE_INDEX,
47 1, 2, 6, 5, SO_END_FACE_INDEX,
48 2, 3, 7, 6, SO_END_FACE_INDEX,
49 3, 0, 4, 7, SO_END_FACE_INDEX
50};

◆ sogenericbox_vindices_foraltreplines

int sogenericbox_vindices_foraltreplines[20]
static
Initial value:
=
{
0, 1, 2, 3, 0, 4, 5, 6, 7, 4, SO_END_LINE_INDEX,
3, 7, SO_END_LINE_INDEX,
6, 2, SO_END_LINE_INDEX,
5, 1, SO_END_LINE_INDEX,
}

Definition at line 53 of file SoGenericBox.cxx.

53 {
54 0, 1, 2, 3, 0, 4, 5, 6, 7, 4, SO_END_LINE_INDEX,
55 3, 7, SO_END_LINE_INDEX,
56 6, 2, SO_END_LINE_INDEX,
57 5, 1, SO_END_LINE_INDEX,
58};