COVISE Core
Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
covise::coSphere Class Reference

#include <coSphere.h>

Public Types

enum  { TESSELATION = 17 }
 

Public Member Functions

 coSphere ()
 
void deformSpheres (int numPoints, float *dataIn[3], float *xPoints, float *yPoints, float *zPoints, float *xSpheres, float *ySpheres, float *zSpheres, float *normalsOut[3], float scale)
 
void scaleSphere (float radius)
 
void useScaledSphere (const float *sourceX, const float *sourceY, const float *sourceZ, const float *data_in, float radscal, float *xSpheres, float *ySpheres, float *zSpheres, float *xPoints, float *yPoints, float *zPoints, float *normalsOut[3], int *tsl, int *vl, int numPoints, float *dataOut, float *colorIn, int hasColor)
 
void computeSpheres (float scale, float radius, float *data_in[3], float *xSpheres, float *ySpheres, float *zSpheres, float *xPoints, float *yPoints, float *zPoints, float *normalsOut[3], int *tsl, int *vl, int numPoints, float *dataOut, float *colorIn, int hasColor, int hasData)
 
coDistributedObjectamplifyData (const coDistributedObject *, const coObjInfo &newObj, int)
 

Private Member Functions

float gsin (float angle)
 
float gcos (float angle)
 
void buildOneUnitSphere ()
 

Private Attributes

float gcos_72_ [5]
 
float gcos_72_36_ [5]
 
float gsin_72_ [5]
 
float gsin_72_36_ [5]
 
float gsin45_
 
float xSphere_ [TESSELATION]
 
float ySphere_ [TESSELATION]
 
float zSphere_ [TESSELATION]
 
float normalsOutX_ [TESSELATION]
 
float normalsOutY_ [TESSELATION]
 
float normalsOutZ_ [TESSELATION]
 
int tsl_ [6]
 
int vl_ [42]
 
float xScaleSphere_ [TESSELATION]
 
float yScaleSphere_ [TESSELATION]
 
float zScaleSphere_ [TESSELATION]
 

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
TESSELATION 

Constructor & Destructor Documentation

◆ coSphere()

coSphere::coSphere ( )

Member Function Documentation

◆ amplifyData()

coDistributedObject * coSphere::amplifyData ( const coDistributedObject data_in,
const coObjInfo newObj,
int  numPoints 
)

◆ buildOneUnitSphere()

void coSphere::buildOneUnitSphere ( )
private

◆ computeSpheres()

void coSphere::computeSpheres ( float  scale,
float  radius,
float *  data_in[3],
float *  xSpheres,
float *  ySpheres,
float *  zSpheres,
float *  xPoints,
float *  yPoints,
float *  zPoints,
float *  normalsOut[3],
int *  tsl,
int *  vl,
int  numPoints,
float *  dataOut,
float *  colorIn,
int  hasColor,
int  hasData 
)

◆ deformSpheres()

void coSphere::deformSpheres ( int  numPoints,
float *  dataIn[3],
float *  xPoints,
float *  yPoints,
float *  zPoints,
float *  xSpheres,
float *  ySpheres,
float *  zSpheres,
float *  normalsOut[3],
float  scale 
)

◆ gcos()

float covise::coSphere::gcos ( float  angle)
inlineprivate

◆ gsin()

float covise::coSphere::gsin ( float  angle)
inlineprivate

◆ scaleSphere()

void coSphere::scaleSphere ( float  radius)

◆ useScaledSphere()

void coSphere::useScaledSphere ( const float *  sourceX,
const float *  sourceY,
const float *  sourceZ,
const float *  data_in,
float  radscal,
float *  xSpheres,
float *  ySpheres,
float *  zSpheres,
float *  xPoints,
float *  yPoints,
float *  zPoints,
float *  normalsOut[3],
int *  tsl,
int *  vl,
int  numPoints,
float *  dataOut,
float *  colorIn,
int  hasColor 
)

Member Data Documentation

◆ gcos_72_

float covise::coSphere::gcos_72_[5]
private

◆ gcos_72_36_

float covise::coSphere::gcos_72_36_[5]
private

◆ gsin45_

float covise::coSphere::gsin45_
private

◆ gsin_72_

float covise::coSphere::gsin_72_[5]
private

◆ gsin_72_36_

float covise::coSphere::gsin_72_36_[5]
private

◆ normalsOutX_

float covise::coSphere::normalsOutX_[TESSELATION]
private

◆ normalsOutY_

float covise::coSphere::normalsOutY_[TESSELATION]
private

◆ normalsOutZ_

float covise::coSphere::normalsOutZ_[TESSELATION]
private

◆ tsl_

int covise::coSphere::tsl_[6]
private

◆ vl_

int covise::coSphere::vl_[42]
private

◆ xScaleSphere_

float covise::coSphere::xScaleSphere_[TESSELATION]
private

◆ xSphere_

float covise::coSphere::xSphere_[TESSELATION]
private

◆ yScaleSphere_

float covise::coSphere::yScaleSphere_[TESSELATION]
private

◆ ySphere_

float covise::coSphere::ySphere_[TESSELATION]
private

◆ zScaleSphere_

float covise::coSphere::zScaleSphere_[TESSELATION]
private

◆ zSphere_

float covise::coSphere::zSphere_[TESSELATION]
private

The documentation for this class was generated from the following files: