Visualisierung 2 CNN
Shape Class Referenceabstract

Base class for various Shape Subclasses that are used for calculating vertex positions based on a center position and size. More...

Inheritance diagram for Shape:
CircleShape GridShape LineShape

Public Member Functions

 Shape (Vector3 position, DrawMode drawMode)
 
Vector3 [] GetVertices (bool update)
 Return vertices of this shape. If update parameter is false, stored vertices are returned, else they are recalculated. More...
 
abstract float [] Bbox ()
 calculate the bounding box of this shape More...
 

Static Public Member Functions

static Vector3 [] InterpolateShapes (Vector3[] s1, Vector3[] s2, float alpha)
 Interpolate 2 Shapes with different parameters and return their vertices. More...
 

Protected Member Functions

abstract void calcVertices ()
 returns 3d Vectors that can be added to the mesh. More...
 

Protected Attributes

DrawMode drawMode
 
Vector3 [] _verts
 

Properties

Vector3 position [get, set]
 

Detailed Description

Base class for various Shape Subclasses that are used for calculating vertex positions based on a center position and size.

Constructor & Destructor Documentation

◆ Shape()

Shape.Shape ( Vector3  position,
DrawMode  drawMode 
)

Member Function Documentation

◆ Bbox()

abstract float [] Shape.Bbox ( )
pure virtual

calculate the bounding box of this shape

Returns

Implemented in GridShape, CircleShape, and LineShape.

◆ calcVertices()

abstract void Shape.calcVertices ( )
protectedpure virtual

returns 3d Vectors that can be added to the mesh.

Implemented in GridShape, CircleShape, and LineShape.

◆ GetVertices()

Vector3 [] Shape.GetVertices ( bool  update)

Return vertices of this shape. If update parameter is false, stored vertices are returned, else they are recalculated.

Parameters
update
Returns

◆ InterpolateShapes()

static Vector3 [] Shape.InterpolateShapes ( Vector3 []  s1,
Vector3 []  s2,
float  alpha 
)
static

Interpolate 2 Shapes with different parameters and return their vertices.

Parameters
s1
s2
alpha
Returns

Member Data Documentation

◆ _verts

Vector3 [] Shape._verts
protected

◆ drawMode

DrawMode Shape.drawMode
protected

Property Documentation

◆ position

Vector3 Shape.position
getset

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