Eidolon
Namespaces | Functions | Variables
RenderTypes.cpp File Reference
#include "RenderTypes.h"
Include dependency graph for RenderTypes.cpp:

Namespaces

 RenderTypes
 

Functions

void initSharedDir (const std::string &path)
 
std::string getSharedDir ()
 
void addShared (const std::string &name)
 
void unlinkShared (const std::string &name)
 
void readBinaryFileToBuff (const char *filename, size_t offset, void *dest, size_t len) throw (MemException)
 Using mmap, copy the contents from file `filename' into `dest' starting `offset' bytes from the beginning. More...
 
void storeBufftoBinaryFile (const char *filename, void *src, size_t len, int *header, size_t headerlen) throw (MemException)
 Using mmap, copy the contents of `header' and then `src' into file `filename'. More...
 
void convertUByteStreamToRealMatrix (const char *stream, RealMatrix *mat)
 
void convertUShortStreamToRealMatrix (const char *stream, RealMatrix *mat)
 
void convertByteStreamToRealMatrix (const char *stream, RealMatrix *mat)
 
void convertShortStreamToRealMatrix (const char *stream, RealMatrix *mat)
 
void convertUIntStreamToRealMatrix (const char *stream, RealMatrix *mat)
 
void convertIntStreamToRealMatrix (const char *stream, RealMatrix *mat)
 
void convertFloatStreamToRealMatrix (const char *stream, RealMatrix *mat)
 
void convertRealStreamToRealMatrix (const char *stream, RealMatrix *mat)
 
std::pair< vec3, vec3 > calculateBoundBox (const Vec3Matrix *mat)
 
void basis_Tet1NL (real xi0, real xi1, real xi2, real *coeffs)
 Linear Nodal Lagrange tetrahedron basis function, fills in `coeffs' for the given xi value, `coeffs' must be 4 long. More...
 
void basis_Hex1NL (real xi0, real xi1, real xi2, real *coeffs)
 Linear Nodal Lagrange hexahedron basis function, fills in `coeffs' for the given xi value, `coeffs' must be 8 long. More...
 
real basis_n_NURBS (sval ctrlpt, sval degree, real xi, const RealMatrix *knots)
 
RealMatrix * getDefaultKnotMat (sval length, sval degree)
 
real scaleXiMat (real xi, sval degree, RealMatrix *knots)
 
void basis_NURBS_default (real u, real v, real w, sval ul, sval vl, sval wl, sval udegree, sval vdegree, sval wdegree, real *coeffs)
 
void catmullRomSpline (real t, real *coeffs)
 Produces the 4 coefficients for a Catmull-Rom spline in [value 1, value 2, derivative 1, derivative 2] orderings in `coeffs'. More...
 
real mat4Det (real a, real b, real c, real d, real e, real f, real g, real h, real i, real j, real k, real l, real m, real n, real o, real p)
 
bool pointInTet (vec3 pt, vec3 n1, vec3 n2, vec3 n3, vec3 n4)
 Returns true if `pt' is in the tet (n1,n2,n3,n4). More...
 
bool pointInHex (vec3 pt, vec3 n1, vec3 n2, vec3 n3, vec3 n4, vec3 n5, vec3 n6, vec3 n7, vec3 n8)
 Returns true if `pt' is in the hex defined by (n1-n8) More...
 
vec3 pointSearchLinTet (vec3 pt, vec3 n1, vec3 n2, vec3 n3, vec3 n4)
 
vec3 pointSearchLinHex (vec3 pt, vec3 n1, vec3 n2, vec3 n3, vec3 n4, vec3 n5, vec3 n6, vec3 n7, vec3 n8)
 
realtriple calculateTriPlaneSlice (const vec3 &planept, const vec3 &planenorm, const vec3 &a, const vec3 &b, const vec3 &c)
 
real calculateLinePlaneSlice (const vec3 &planept, const vec3 &planenorm, const vec3 &a, const vec3 &b)
 
real calculateTetEdgeIntersect (real val, real a, real b)
 
void calculateTetValueIntersects (real val, real a, real b, real c, real d, real *results)
 
sval calculateHexValueIntersects (real val, const real *vals, intersect *results)
 
void interpolateImageStack (const std::vector< RealMatrix *> &stack, const transform &stacktransinv, RealMatrix *out, const transform &outtrans)
 
real getImageStackValue (const std::vector< RealMatrix *> &stack, const vec3 &pos)
 
void calculateImageHistogram (const RealMatrix *img, RealMatrix *hist, i32 minv)
 
vec3 * calculateTriNorms (vec3 *nodes, sval numnodes, indexval *inds, sval numinds)
 

Variables

std::string shmdir =""
 
std::map< std::pair< sval, sval >, RealMatrix * > defaultKnots
 
vec3 divtets [5][4]