25#ifndef _SOURCE_RENDERING_TFCOLORMAPPER_H_
26#define _SOURCE_RENDERING_TFCOLORMAPPER_H_
29#include <TissueForge_private.h>
50 typedef float (*ParticleColorMapperFunc)(TissueForge::Particle* o,
struct ColorMapper* mapper);
59 struct CAPI_EXPORT ColorMapper
74 ColorMapper(
const std::string &name,
const float &min=0.f,
const float &max=1.f);
293 AngleColorMapperFunc mapper_angle;
294 BondColorMapperFunc mapper_bond;
295 DihedralColorMapperFunc mapper_dihedral;
296 ParticleColorMapperFunc mapper_particle;
298 unsigned int map_enum_angle;
299 unsigned int map_enum_bond;
300 unsigned int map_enum_dihedral;
301 unsigned int map_enum_particle;
Tissue Forge I/O.
Definition tfThreeDFAngleMeshGenerator.h:28
HRESULT toFile(const T &dataElement, const MetaData &metaData, IOElement &fileElement)
Convert an object to an intermediate I/O object.
HRESULT fromFile(const IOElement &fileElement, const MetaData &metaData, T *dataElement)
Instantiate an object from an intermediate I/O object.
Tissue Forge rendering and visualization.
Definition tfAngle.h:38
Include Python header, disable linking to pythonX_d.lib on Windows in debug mode.
Definition tfAngleConfig.h:26
struct TissueForge::Dihedral Dihedral
struct TissueForge::Bond Bond
Bonds apply a potential to a particular set of particles.
struct TissueForge::Angle Angle
A bond concerning an angle.
A bond concerning an angle.
Definition tfAngle.h:60
Bonds apply a potential to a particular set of particles.
Definition tfBond.h:68
Definition tfDihedral.h:54
Definition tfParticle.h:101
Structure containing information on each particle type.
Definition tfParticle.h:768
The color mapping type.
Definition tfColorMapper.h:60
unsigned int getMapBond() const
Get the bond map label.
Definition tfColorMapper.h:156
void setMapDihedralAngleEq()
Set the dihedral map to angle from equilibrium.
const bool hasMapBond() const
Test whether the mapper has a bond map.
void clearMapBond()
Clear the bond map.
void setMapDihedralAngle()
Set the dihedral map to angle.
void setMapAngleAngle()
Set the angle map to angle.
void setMapParticleForceX()
Set the particle map to x-component of particle force.
fVector4 mapObj(Particle *o)
Map a particle to a color.
fVector4 mapObj(Dihedral *o)
Map a dihedral to a color.
void clearMapAngle()
Clear the angle map.
void setMapDihedral(const unsigned int &label)
Set the dihedral map by a label.
const bool hasMapAngle() const
Test whether the mapper has an angle map.
void setMapParticleSpeed()
Set the particle map to particle speed.
unsigned int getMapParticle() const
Get the particle map label.
Definition tfColorMapper.h:146
void setMapParticleVelocityX()
Set the particle map to x-component of particle velocity.
void setMapParticlePositionY()
Set the particle map to y-coordinate of particle position.
void setMapBond(const unsigned int &label)
Set the bond map by a label.
float min_val
minimum value of map
Definition tfColorMapper.h:67
void setMapParticle(const unsigned int &label)
Set the particle map by a label.
unsigned int getMapDihedral() const
Get the dihedral map label.
Definition tfColorMapper.h:161
void setMapBondLengthEq()
Set the bond map to length from equilibrium.
static std::vector< std::string > getNames()
Get all available color map names.
fVector4 mapScalar(const float &val) const
Map a scalar value to a color.
void setMapParticleVelocityZ()
Set the particle map to z-component of particle velocity.
void setMapParticlePositionX()
Set the particle map to x-coordinate of particle position.
void clearMapParticle()
Clear the particle map.
fVector4 mapObj(Angle *o)
Map an angle to a color.
void setMapParticleVelocityY()
Set the particle map to y-component of particle velocity.
std::string getColorMapName() const
Try to get the current color map name.
void setMapParticlePositionZ()
Set the particle map to z-coordinate of particle position.
bool set_colormap(const std::string &s)
Try to set the colormap.
void setMapParticleForceY()
Set the particle map to y-component of particle force.
fVector4 mapObj(Bond *o)
Map a bond to a color.
const bool hasMapDihedral() const
Test whether the mapper has a dihedral map.
unsigned int getMapAngle() const
Get the angle map label.
Definition tfColorMapper.h:151
void setMapParticleForceZ()
Set the particle map to z-component of particle force.
void setMapParticleSpecies(ParticleType *pType, const std::string &name)
Set the particle map to a species value.
void setMapAngleAngleEq()
Set the angle map to angle from equilibrium.
void clearMapDihedral()
Clear the dihedral map.
const bool hasMapParticle() const
Test whether the mapper has a particle map.
void setMapAngle(const unsigned int &label)
Set the angle map by a label.
float max_val
maximum value of map
Definition tfColorMapper.h:72
void setMapBondLength()
Set the bond map to length.
int32_t HRESULT
Definition tf_port.h:255