FhSim  3.1.0
Marine systems simulation
Loading...
Searching...
No Matches
SCableRenderSpec Struct Reference

Contains some specifications and methods used for rendering cables.

#include <InternalCable.h>

Public Member Functions

 SCableRenderSpec (int numFaces, int numElements, double drawDiameter)
 
 ~SCableRenderSpec ()
 The destructor frees allocated memory.
 
void Update (int element, const double *adElPosA, const double *adElPosB, const double *adDirection, double dL0)
 

Public Attributes

double deltaTheta
 
double * adTheta
 
double * adSinTheta
 
double * adCosTheta
 
double textureScale
 
double * adCirclePos
 
double * adFacePosNormal
 
double * adTextureCoordU
 
double * adTextureCoordV
 
int numRenderEdges
 
double drawDiam
 
int * aiIndex
 
int sizeIndexBuffer
 

Constructor & Destructor Documentation

◆ SCableRenderSpec()

SCableRenderSpec::SCableRenderSpec ( int  numFaces,
int  numElements,
double  drawDiameter 
)
inline

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

Parameters
[in]numFacesThe number of faces to draw
[in]numElementsThe number of cable elements
[in]drawDiameterThe diameter to draw the cable

Member Function Documentation

◆ Update()

void SCableRenderSpec::Update ( int  element,
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]elementThe 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: