Back to index

salome-gui  6.5.0
Classes | Namespaces | Defines | Typedefs | Functions | Variables
VTKViewer_PolyDataMapper.cxx File Reference
#include "VTKViewer_PolyDataMapper.h"
#include "VTKViewer_MarkerUtils.h"
#include <utilities.h>
#include <QString>
#include <vtkCellArray.h>
#include <vtkImageData.h>
#include <vtkObjectFactory.h>
#include <vtkPointData.h>
#include <vtkPolyData.h>
#include <vtkProperty.h>
#include <vtkRenderer.h>
#include <vtkSmartPointer.h>
#include <vtkTimerLog.h>
#include <vtkWindow.h>
#include <GL/glx.h>
#include <dlfcn.h>

Go to the source code of this file.

Classes

struct  VTK::TVertex
struct  VTK::TColorFunctorBase
struct  VTK::TPropertyColor
struct  VTK::TColors2Color
struct  VTK::TPointColors2Color
struct  VTK::TCellColors2Color

Namespaces

namespace  VTK

Defines

#define GLX_GLXEXT_LEGACY
#define VTK_PDPSM_COLORS   0x0001
#define VTK_PDPSM_CELL_COLORS   0x0002
#define VTK_PDPSM_POINT_TYPE_FLOAT   0x0004
#define VTK_PDPSM_POINT_TYPE_DOUBLE   0x0008
#define VTK_PDPSM_NORMAL_TYPE_FLOAT   0x0010
#define VTK_PDPSM_NORMAL_TYPE_DOUBLE   0x0020
#define VTK_PDPSM_OPAQUE_COLORS   0x0040
#define APIENTRY
#define APIENTRYP   APIENTRY *
#define GL_VERTEX_PROGRAM_POINT_SIZE_ARB   0x8642
#define GL_POINT_SPRITE_ARB   0x8861
#define GL_COORD_REPLACE_ARB   0x8862
#define GL_ARRAY_BUFFER_ARB   0x8892
#define GL_STATIC_DRAW_ARB   0x88E4
#define GL_GetProcAddress(x)   glXGetProcAddressARB( (const GLubyte*)x )

Typedefs

typedef ptrdiff_t GLsizeiptrARB
typedef GLuint buffer
typedef const GLuint * buffers
typedef GLsizeiptrARB size
typedef GLsizeiptrARB const
GLvoid * 
data
typedef GLsizeiptrARB const
GLvoid GLenum 
usage

Functions

 vtkCxxRevisionMacro (VTKViewer_PolyDataMapper,"Revision$")
 vtkStandardNewMacro (VTKViewer_PolyDataMapper)
typedef void (APIENTRYP PFNGLBINDBUFFERARBPROC)(GLenum target
bool InitializeBufferExtensions ()
template<class TCoordinates >
void VTK::DrawPoints (TCoordinates *theStartPoints, vtkCellArray *theCells, TColorFunctorBase *theColorFunctor, TVertex *theVertexArr, vtkIdType &theCellId, vtkIdType &theVertexId)
template<class TCoordinates >
void VTK::DrawCellsPoints (vtkPolyData *theInput, vtkPoints *thePoints, TColorFunctorBase *theColorFunctor, TVertex *theVertexArr)

Variables

static PFNGLGENBUFFERSARBPROC vglGenBuffersARB = NULL
static PFNGLBINDBUFFERARBPROC vglBindBufferARB = NULL
static PFNGLBUFFERDATAARBPROC vglBufferDataARB = NULL
static PFNGLDELETEBUFFERSARBPROC vglDeleteBuffersARB = NULL
static bool IsBufferExtensionsInitialized = InitializeBufferExtensions()

Class Documentation

struct VTK::TVertex

Definition at line 310 of file VTKViewer_PolyDataMapper.cxx.

Class Members
GLfloat a
GLfloat b
GLfloat g
GLfloat r
GLfloat vx
GLfloat vy
GLfloat vz

Define Documentation

#define APIENTRY

Definition at line 63 of file VTKViewer_PolyDataMapper.cxx.

#define APIENTRYP   APIENTRY *

Definition at line 66 of file VTKViewer_PolyDataMapper.cxx.

#define GL_ARRAY_BUFFER_ARB   0x8892

Definition at line 81 of file VTKViewer_PolyDataMapper.cxx.

#define GL_COORD_REPLACE_ARB   0x8862

Definition at line 75 of file VTKViewer_PolyDataMapper.cxx.

#define GL_GetProcAddress (   x)    glXGetProcAddressARB( (const GLubyte*)x )

Definition at line 96 of file VTKViewer_PolyDataMapper.cxx.

#define GL_POINT_SPRITE_ARB   0x8861

Definition at line 74 of file VTKViewer_PolyDataMapper.cxx.

#define GL_STATIC_DRAW_ARB   0x88E4

Definition at line 82 of file VTKViewer_PolyDataMapper.cxx.

#define GL_VERTEX_PROGRAM_POINT_SIZE_ARB   0x8642

Definition at line 70 of file VTKViewer_PolyDataMapper.cxx.

Definition at line 40 of file VTKViewer_PolyDataMapper.cxx.

#define VTK_PDPSM_CELL_COLORS   0x0002

Definition at line 55 of file VTKViewer_PolyDataMapper.cxx.

#define VTK_PDPSM_COLORS   0x0001

Definition at line 54 of file VTKViewer_PolyDataMapper.cxx.

#define VTK_PDPSM_NORMAL_TYPE_DOUBLE   0x0020

Definition at line 59 of file VTKViewer_PolyDataMapper.cxx.

#define VTK_PDPSM_NORMAL_TYPE_FLOAT   0x0010

Definition at line 58 of file VTKViewer_PolyDataMapper.cxx.

#define VTK_PDPSM_OPAQUE_COLORS   0x0040

Definition at line 60 of file VTKViewer_PolyDataMapper.cxx.

#define VTK_PDPSM_POINT_TYPE_DOUBLE   0x0008

Definition at line 57 of file VTKViewer_PolyDataMapper.cxx.

#define VTK_PDPSM_POINT_TYPE_FLOAT   0x0004

Definition at line 56 of file VTKViewer_PolyDataMapper.cxx.


Typedef Documentation

typedef GLuint buffer

Definition at line 85 of file VTKViewer_PolyDataMapper.cxx.

typedef GLuint * buffers

Definition at line 86 of file VTKViewer_PolyDataMapper.cxx.

typedef GLsizeiptrARB const GLvoid* data

Definition at line 88 of file VTKViewer_PolyDataMapper.cxx.

typedef ptrdiff_t GLsizeiptrARB

Definition at line 79 of file VTKViewer_PolyDataMapper.cxx.

Definition at line 88 of file VTKViewer_PolyDataMapper.cxx.

typedef GLsizeiptrARB const GLvoid GLenum usage

Definition at line 88 of file VTKViewer_PolyDataMapper.cxx.


Function Documentation

Definition at line 101 of file VTKViewer_PolyDataMapper.cxx.

{
  vglGenBuffersARB = (PFNGLGENBUFFERSARBPROC)GL_GetProcAddress( "glGenBuffersARB" );
  if( !vglGenBuffersARB )
    return false;

  vglBindBufferARB = (PFNGLBINDBUFFERARBPROC)GL_GetProcAddress( "glBindBufferARB" );
  if( !vglBindBufferARB )
    return false;

  vglBufferDataARB = (PFNGLBUFFERDATAARBPROC)GL_GetProcAddress( "glBufferDataARB" );
  if( !vglBufferDataARB )
    return false;

  vglDeleteBuffersARB = (PFNGLDELETEBUFFERSARBPROC)GL_GetProcAddress( "glDeleteBuffersARB" );
  if( !vglDeleteBuffersARB )
    return false;

  return true;
};
typedef void ( APIENTRYP  PFNGLBINDBUFFERARBPROC)
vtkCxxRevisionMacro ( VTKViewer_PolyDataMapper  ,
"Revision$"   
)
vtkStandardNewMacro ( VTKViewer_PolyDataMapper  )

Variable Documentation

Definition at line 122 of file VTKViewer_PolyDataMapper.cxx.

PFNGLBINDBUFFERARBPROC vglBindBufferARB = NULL [static]

Definition at line 91 of file VTKViewer_PolyDataMapper.cxx.

PFNGLBUFFERDATAARBPROC vglBufferDataARB = NULL [static]

Definition at line 92 of file VTKViewer_PolyDataMapper.cxx.

PFNGLDELETEBUFFERSARBPROC vglDeleteBuffersARB = NULL [static]

Definition at line 93 of file VTKViewer_PolyDataMapper.cxx.

PFNGLGENBUFFERSARBPROC vglGenBuffersARB = NULL [static]

Definition at line 90 of file VTKViewer_PolyDataMapper.cxx.