Class StaticModelVis

Class Documentation

class flamegpu::visualiser::StaticModelVis

This class serves as an interface for managing an instance of ModelConfig::StaticModel

Public Functions

explicit StaticModelVis(std::shared_ptr<ModelConfig::StaticModel> _m)

See

ModelVis::addStaticModel(const std::string &, const std::string &)

Note

This should only be constructed by ModelVis

Parameters

_m – Reference which this interface manages

void setModelScale(float xLen, float yLen, float zLen)

Scale each dimension of the model to the corresponding world scales

Note

Y is considered the vertical axis

Parameters
  • xLen – World scale of the model’s on the x axis

  • yLen – World scale of the model’s on the y axis

  • zLen – World scale of the model’s on the z axis

void setModelScale(float maxLen)

Uniformly scale model so that max dimension equals this

Parameters

maxLen – World scale of the model’s relative to the axis which it is largest

void setModelLocation(float x, float y, float z)

Translation applied to the model

Note

Y is considered the vertical axis

Parameters
  • x – X coordinate

  • y – Y coordinate

  • z – Z coordinate

void setModelRotation(float x, float y, float z, float radians)

Rotation applied to the model (before translation)

Note

Y is considered the vertical axis

Parameters
  • x – X component of axis vector

  • y – Y component of axis vector

  • z – Z component of axis vector

  • radians – How far the model is rotated about the axis