20#ifndef _SOURCE_RENDERING_TFSTYLE_H_
21#define _SOURCE_RENDERING_TFSTYLE_H_
24#include <TissueForge_private.h>
68 Style(
const std::string &color,
const bool &visible=
true, uint32_t flags=STYLE_VISIBLE,
ColorMapper *cmap=NULL);
71 int init(
const fVector3 *color=NULL,
const bool &visible=
true, uint32_t flags=STYLE_VISIBLE,
ColorMapper *cmap=NULL);
Definition tfVector4.h:33
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.
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
The color mapping type.
Definition tfColorMapper.h:60
The Tissue Forge style type.
Definition tfStyle.h:46
void setVisible(const bool &visible)
Set whether visible.
HRESULT setColor(const std::string &colorName)
Set the color by name.
static Style * fromString(const std::string &str)
Create from a JSON string representation.
HRESULT setFlag(StyleFlags flag, bool value)
Set a style flag.
fVector4 map_color(struct Dihedral *d)
Map a dihedral to a color.
void setColorMapper(ColorMapper *cmap)
Set the color mapper.
std::string toString()
Get a JSON string representation.
fVector4 map_color(struct Angle *a)
Map an angle to a color.
fVector4 map_color(struct Particle *p)
Map a particle to a color.
fVector3 color
Definition tfStyle.h:48
Style(const std::string &color, const bool &visible=true, uint32_t flags=STYLE_VISIBLE, ColorMapper *cmap=NULL)
Construct a new style.
uint32_t flags
Definition tfStyle.h:51
void setColorMap(const std::string &colorMap)
Create a color mapper by name.
ColorMapper * getColorMapper() const
Get the color mapper, if any.
std::string getColorMap() const
Get the name of the color map, if any.
fVector4 map_color(struct Bond *b)
Map a bond to a color.
const bool getVisible() const
Test whether visible.
int32_t HRESULT
Definition tf_port.h:255