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.

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

◆ 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.

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

◆ 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.

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