Marine systems simulation
SCableRenderSpec Struct Reference

Contains some specifications and methods used for rendering cables.

#include <CInternalCable.h>

Public Member Functions

 SCableRenderSpec (int iNumFaces, int iNumElements, double dDrawDiameter)
 
 ~SCableRenderSpec ()
 The destructor frees allocated memory.
 
void Update (int iElement, const double *adElPosA, const double *adElPosB, const double *adDirection, double dL0)
 

Public Attributes

double dDeltaTheta
 
double * adTheta
 
double * adSinTheta
 
double * adCosTheta
 
double dTextureScale
 
double * adCirclePos
 
double * adFacePosNormal
 
double * adTextureCoordU
 
double * adTextureCoordV
 
int iNumRenderEdges
 
double dDrawDiam
 
int * aiIndex
 
int iSizeIndexBuffer
 

Constructor & Destructor Documentation

◆ SCableRenderSpec()

SCableRenderSpec::SCableRenderSpec ( int  iNumFaces,
int  iNumElements,
double  dDrawDiameter 
)
inline

The constructor allocates memory and initializes data structures that are not updated at every rendering.

Parameters
[in]iNumFacesThe number of faces to draw
[in]iNumElementsThe number of cable elements
[in]dDrawDiameterThe diameter to draw the cable

Member Function Documentation

◆ Update()

void SCableRenderSpec::Update ( int  iElement,
const double *  adElPosA,
const double *  adElPosB,
const double *  adDirection,
double  dL0 
)
inline

Updates the data structures belonging to the end of one element forthe next rendering.

Parameters
[in]iElementThe index of the element to update.
[in]adElPosAThe position of end A of the element.
[in]adElPosBThe position of end B of the element.
[in]adDirectionThe direction of the element.
[in]dL0The length of the element.

The documentation for this struct was generated from the following file: