Tramway SDK
Public Member Functions | Static Public Member Functions | Protected Attributes | Friends | List of all members
tram::Transition Class Reference

#include <transition.h>

Public Member Functions

 Transition (name_t name, WorldCell *cell_from, WorldCell *cell_into)
 
 ~Transition ()=delete
 
void AddPoint (vec3 point)
 
void GeneratePlanes (bool disp=false)
 
bool IsInside (vec3 point)
 
WorldCellGetInto ()
 
WorldCellGetFrom ()
 

Static Public Member Functions

static TransitionFind (name_t name)
 
static TransitionMake (name_t name, WorldCell *cell_from, WorldCell *cell_into)
 

Protected Attributes

name_t name
 
WorldCellcell_from
 
WorldCellcell_into
 
std::vector< vec3points
 
std::vector< vec4planes
 

Friends

class WorldCell
 

Constructor & Destructor Documentation

◆ Transition()

tram::Transition::Transition ( name_t  name,
WorldCell cell_from,
WorldCell cell_into 
)

◆ ~Transition()

tram::Transition::~Transition ( )
delete

Member Function Documentation

◆ AddPoint()

void tram::Transition::AddPoint ( vec3  point)

◆ Find()

Transition * tram::Transition::Find ( name_t  name)
static

◆ GeneratePlanes()

void tram::Transition::GeneratePlanes ( bool  disp = false)

◆ GetFrom()

WorldCell * tram::Transition::GetFrom ( )
inline

◆ GetInto()

WorldCell * tram::Transition::GetInto ( )
inline

◆ IsInside()

bool tram::Transition::IsInside ( vec3  point)

◆ Make()

Transition * tram::Transition::Make ( name_t  name,
WorldCell cell_from,
WorldCell cell_into 
)
static

Friends And Related Function Documentation

◆ WorldCell

friend class WorldCell
friend

Member Data Documentation

◆ cell_from

WorldCell* tram::Transition::cell_from
protected

◆ cell_into

WorldCell* tram::Transition::cell_into
protected

◆ name

name_t tram::Transition::name
protected

◆ planes

std::vector<vec4> tram::Transition::planes
protected

◆ points

std::vector<vec3> tram::Transition::points
protected

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