Geant4-11
Data Structures | Typedefs | Functions | Variables
SoImageWriter.cc File Reference
#include <HEPVis/nodes/SoImageWriter.h>
#include <Inventor/errors/SoDebugError.h>
#include <Inventor/elements/SoViewportRegionElement.h>
#include <Inventor/actions/SoGLRenderAction.h>
#include <HEPVis/SbGL.h>
#include <HEPVis/SbPainterPS.h>
#include <stdlib.h>

Go to the source code of this file.

Data Structures

struct  Pixel
 

Typedefs

typedef unsigned char Uchar
 

Functions

static int getRGB (unsigned int aX,unsigned int aY,double &aRed,double &aGreen,double &aBlue)
 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!// More...
 

Variables

static int sHeight = 0
 
static float * sImage = 0
 
static int sWidth = 0
 

Typedef Documentation

◆ Uchar

typedef unsigned char Uchar

Definition at line 52 of file SoImageWriter.cc.

Function Documentation

◆ getRGB()

int getRGB ( unsigned int  aX,
unsigned int  aY,
double &  aRed,
double &  aGreen,
double &  aBlue 
)
static

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//

Definition at line 330 of file SoImageWriter.cc.

341{
342 float* pimag = sImage + 3 * (sWidth * (sHeight - 1 - aY) + aX);
343 aRed = *pimag;pimag++;
344 aGreen = *pimag;pimag++;
345 aBlue = *pimag;pimag++;
346 return 1;
347}
static int sHeight
static float * sImage
static int sWidth

References sHeight, sImage, and sWidth.

Referenced by SoImageWriter::GLRender().

Variable Documentation

◆ sHeight

int sHeight = 0
static

Definition at line 58 of file SoImageWriter.cc.

Referenced by getRGB(), and SoImageWriter::GLRender().

◆ sImage

float* sImage = 0
static

Definition at line 59 of file SoImageWriter.cc.

Referenced by getRGB(), and SoImageWriter::GLRender().

◆ sWidth

int sWidth = 0
static

Definition at line 57 of file SoImageWriter.cc.

Referenced by getRGB(), and SoImageWriter::GLRender().