|
Tissue Forge C 0.2.1
Interactive, particle-based physics, chemistry and biology modeling and simulation environment
|


Go to the source code of this file.
Data Structures | |
| struct | tfRenderingStyleHandle |
| Handle to a rendering::Style instance. More... | |
| struct | tfRenderingColorMapperHandle |
| Handle to a rendering::ColorMapper instance. More... | |
Functions | |
| HRESULT | tfRenderingColorMapper_init (struct tfRenderingColorMapperHandle *handle, const char *name, float min, float max) |
| Initialize an instance. | |
| HRESULT | tfRenderingColorMapper_destroy (struct tfRenderingColorMapperHandle *handle) |
| Destroy an instance. | |
| HRESULT | tfRenderingColorMapper_getMinVal (struct tfRenderingColorMapperHandle *handle, float *val) |
| Get the minimum map value. | |
| HRESULT | tfRenderingColorMapper_setMinVal (struct tfRenderingColorMapperHandle *handle, float val) |
| Set the minimum map value. | |
| HRESULT | tfRenderingColorMapper_getMaxVal (struct tfRenderingColorMapperHandle *handle, float *val) |
| Get the maximum map value. | |
| HRESULT | tfRenderingColorMapper_setMaxVal (struct tfRenderingColorMapperHandle *handle, float val) |
| Set the maximum map value. | |
| HRESULT | tfRenderingColorMapper_hasMapParticle (struct tfRenderingColorMapperHandle *handle, bool *result) |
| Test whether the mapper has a particle map. | |
| HRESULT | tfRenderingColorMapper_hasMapAngle (struct tfRenderingColorMapperHandle *handle, bool *result) |
| Test whether the mapper has an angle map. | |
| HRESULT | tfRenderingColorMapper_hasMapBond (struct tfRenderingColorMapperHandle *handle, bool *result) |
| Test whether the mapper has a bond map. | |
| HRESULT | tfRenderingColorMapper_hasMapDihedral (struct tfRenderingColorMapperHandle *handle, bool *result) |
| Test whether the mapper has a dihedral map. | |
| HRESULT | tfRenderingColorMapper_clearMapParticle (struct tfRenderingColorMapperHandle *handle) |
| Clear the particle map. | |
| HRESULT | tfRenderingColorMapper_clearMapAngle (struct tfRenderingColorMapperHandle *handle) |
| Clear the angle map. | |
| HRESULT | tfRenderingColorMapper_clearMapBond (struct tfRenderingColorMapperHandle *handle) |
| Clear the bond map. | |
| HRESULT | tfRenderingColorMapper_clearMapDihedral (struct tfRenderingColorMapperHandle *handle) |
| Clear the dihedral map. | |
| HRESULT | tfRenderingColorMapper_setMapParticlePositionX (struct tfRenderingColorMapperHandle *handle) |
| Set the particle map to x-coordinate of particle position. | |
| HRESULT | tfRenderingColorMapper_setMapParticlePositionY (struct tfRenderingColorMapperHandle *handle) |
| Set the particle map to y-coordinate of particle position. | |
| HRESULT | tfRenderingColorMapper_setMapParticlePositionZ (struct tfRenderingColorMapperHandle *handle) |
| Set the particle map to z-coordinate of particle position. | |
| HRESULT | tfRenderingColorMapper_setMapParticleVelocityX (struct tfRenderingColorMapperHandle *handle) |
| Set the particle map to x-component of particle velocity. | |
| HRESULT | tfRenderingColorMapper_setMapParticleVelocityY (struct tfRenderingColorMapperHandle *handle) |
| Set the particle map to y-component of particle velocity. | |
| HRESULT | tfRenderingColorMapper_setMapParticleVelocityZ (struct tfRenderingColorMapperHandle *handle) |
| Set the particle map to z-component of particle velocity. | |
| HRESULT | tfRenderingColorMapper_setMapParticleSpeed (struct tfRenderingColorMapperHandle *handle) |
| Set the particle map to particle speed. | |
| HRESULT | tfRenderingColorMapper_setMapParticleForceX (struct tfRenderingColorMapperHandle *handle) |
| Set the particle map to x-component of particle force. | |
| HRESULT | tfRenderingColorMapper_setMapParticleForceY (struct tfRenderingColorMapperHandle *handle) |
| Set the particle map to y-component of particle force. | |
| HRESULT | tfRenderingColorMapper_setMapParticleForceZ (struct tfRenderingColorMapperHandle *handle) |
| Set the particle map to z-component of particle force. | |
| HRESULT | tfRenderingColorMapper_setMapParticleSpecies (struct tfRenderingColorMapperHandle *handle, struct tfParticleTypeHandle *pType, const char *name) |
| Set the particle map to a species value. | |
| HRESULT | tfRenderingColorMapper_setMapAngleAngle (struct tfRenderingColorMapperHandle *handle) |
| Set the angle map to angle. | |
| HRESULT | tfRenderingColorMapper_setMapAngleAngleEq (struct tfRenderingColorMapperHandle *handle) |
| Set the angle map to angle from equilibrium. | |
| HRESULT | tfRenderingColorMapper_setMapBondLength (struct tfRenderingColorMapperHandle *handle) |
| Set the bond map to length. | |
| HRESULT | tfRenderingColorMapper_setMapBondLengthEq (struct tfRenderingColorMapperHandle *handle) |
| Set the bond map to length from equilibrium. | |
| HRESULT | tfRenderingColorMapper_setMapDihedralAngle (struct tfRenderingColorMapperHandle *handle) |
| Set the dihedral map to angle. | |
| HRESULT | tfRenderingColorMapper_setMapDihedralAngleEq (struct tfRenderingColorMapperHandle *handle) |
| Set the dihedral map to angle from equilibrium. | |
| HRESULT | tfRenderingColorMapper_set_colormap (struct tfRenderingColorMapperHandle *handle, const char *s) |
| Try to set the colormap. | |
| HRESULT | tfRenderingStyle_init (struct tfRenderingStyleHandle *handle) |
| Initialize an instance. | |
| HRESULT | tfRenderingStyle_initC (struct tfRenderingStyleHandle *handle, float *color, bool visible) |
| Initialize an instance. | |
| HRESULT | tfRenderingStyle_initS (struct tfRenderingStyleHandle *handle, const char *colorName, bool visible) |
| Initialize an instance. | |
| HRESULT | tfRenderingStyle_destroy (struct tfRenderingStyleHandle *handle) |
| Destroy an instance. | |
| HRESULT | tfRenderingStyle_setColor (struct tfRenderingStyleHandle *handle, const char *colorName) |
| Set the color by name. | |
| HRESULT | tfRenderingStyle_getVisible (struct tfRenderingStyleHandle *handle, bool *visible) |
| Test whether the instance is visible. | |
| HRESULT | tfRenderingStyle_setVisible (struct tfRenderingStyleHandle *handle, bool visible) |
| Set whether the instance is visible. | |
| HRESULT | tfRenderingStyle_getColorMapper (struct tfRenderingStyleHandle *handle, struct tfRenderingColorMapperHandle *mapper) |
| Get the color mapper, if any. | |
| HRESULT | tfRenderingStyle_setColorMapper (struct tfRenderingStyleHandle *handle, struct tfRenderingColorMapperHandle *mapper) |
| Set the color mapper. | |
| HRESULT | tfRenderingStyle_toString (struct tfRenderingStyleHandle *handle, char **str, unsigned int *numChars) |
| Get a JSON string representation. | |
| HRESULT | tfRenderingStyle_fromString (struct tfRenderingStyleHandle *handle, const char *str) |
| Create from a JSON string representation. | |
| HRESULT tfRenderingColorMapper_clearMapAngle | ( | struct tfRenderingColorMapperHandle * | handle | ) |
Clear the angle map.
| handle | populated handle |
| HRESULT tfRenderingColorMapper_clearMapBond | ( | struct tfRenderingColorMapperHandle * | handle | ) |
Clear the bond map.
| handle | populated handle |
| HRESULT tfRenderingColorMapper_clearMapDihedral | ( | struct tfRenderingColorMapperHandle * | handle | ) |
Clear the dihedral map.
| handle | populated handle |
| HRESULT tfRenderingColorMapper_clearMapParticle | ( | struct tfRenderingColorMapperHandle * | handle | ) |
Clear the particle map.
| handle | populated handle |
| HRESULT tfRenderingColorMapper_destroy | ( | struct tfRenderingColorMapperHandle * | handle | ) |
Destroy an instance.
| handle | populated handle |
| HRESULT tfRenderingColorMapper_getMaxVal | ( | struct tfRenderingColorMapperHandle * | handle, |
| float * | val ) |
Get the maximum map value.
| handle | populated handle |
| val | value |
| HRESULT tfRenderingColorMapper_getMinVal | ( | struct tfRenderingColorMapperHandle * | handle, |
| float * | val ) |
Get the minimum map value.
| handle | populated handle |
| val | value |
| HRESULT tfRenderingColorMapper_hasMapAngle | ( | struct tfRenderingColorMapperHandle * | handle, |
| bool * | result ) |
Test whether the mapper has an angle map.
| handle | populated handle |
| result | result of test |
| HRESULT tfRenderingColorMapper_hasMapBond | ( | struct tfRenderingColorMapperHandle * | handle, |
| bool * | result ) |
Test whether the mapper has a bond map.
| handle | populated handle |
| result | result of test |
| HRESULT tfRenderingColorMapper_hasMapDihedral | ( | struct tfRenderingColorMapperHandle * | handle, |
| bool * | result ) |
Test whether the mapper has a dihedral map.
| handle | populated handle |
| result | result of test |
| HRESULT tfRenderingColorMapper_hasMapParticle | ( | struct tfRenderingColorMapperHandle * | handle, |
| bool * | result ) |
Test whether the mapper has a particle map.
| handle | populated handle |
| result | result of test |
| HRESULT tfRenderingColorMapper_init | ( | struct tfRenderingColorMapperHandle * | handle, |
| const char * | name, | ||
| float | min, | ||
| float | max ) |
Initialize an instance.
| handle | handle to populate |
| name | color map name |
| min | minimum map value |
| max | maximum map value |
| HRESULT tfRenderingColorMapper_set_colormap | ( | struct tfRenderingColorMapperHandle * | handle, |
| const char * | s ) |
Try to set the colormap.
If the map doesn't exist, does not do anything and returns false.
| handle | populated handle |
| s | name of color map |
| HRESULT tfRenderingColorMapper_setMapAngleAngle | ( | struct tfRenderingColorMapperHandle * | handle | ) |
Set the angle map to angle.
| handle | populated handle |
| HRESULT tfRenderingColorMapper_setMapAngleAngleEq | ( | struct tfRenderingColorMapperHandle * | handle | ) |
Set the angle map to angle from equilibrium.
| handle | populated handle |
| HRESULT tfRenderingColorMapper_setMapBondLength | ( | struct tfRenderingColorMapperHandle * | handle | ) |
Set the bond map to length.
| handle | populated handle |
| HRESULT tfRenderingColorMapper_setMapBondLengthEq | ( | struct tfRenderingColorMapperHandle * | handle | ) |
Set the bond map to length from equilibrium.
| handle | populated handle |
| HRESULT tfRenderingColorMapper_setMapDihedralAngle | ( | struct tfRenderingColorMapperHandle * | handle | ) |
Set the dihedral map to angle.
| handle | populated handle |
| HRESULT tfRenderingColorMapper_setMapDihedralAngleEq | ( | struct tfRenderingColorMapperHandle * | handle | ) |
Set the dihedral map to angle from equilibrium.
| handle | populated handle |
| HRESULT tfRenderingColorMapper_setMapParticleForceX | ( | struct tfRenderingColorMapperHandle * | handle | ) |
Set the particle map to x-component of particle force.
| handle | populated handle |
| HRESULT tfRenderingColorMapper_setMapParticleForceY | ( | struct tfRenderingColorMapperHandle * | handle | ) |
Set the particle map to y-component of particle force.
| handle | populated handle |
| HRESULT tfRenderingColorMapper_setMapParticleForceZ | ( | struct tfRenderingColorMapperHandle * | handle | ) |
Set the particle map to z-component of particle force.
| handle | populated handle |
| HRESULT tfRenderingColorMapper_setMapParticlePositionX | ( | struct tfRenderingColorMapperHandle * | handle | ) |
Set the particle map to x-coordinate of particle position.
| handle | populated handle |
| HRESULT tfRenderingColorMapper_setMapParticlePositionY | ( | struct tfRenderingColorMapperHandle * | handle | ) |
Set the particle map to y-coordinate of particle position.
| handle | populated handle |
| HRESULT tfRenderingColorMapper_setMapParticlePositionZ | ( | struct tfRenderingColorMapperHandle * | handle | ) |
Set the particle map to z-coordinate of particle position.
| handle | populated handle |
| HRESULT tfRenderingColorMapper_setMapParticleSpecies | ( | struct tfRenderingColorMapperHandle * | handle, |
| struct tfParticleTypeHandle * | pType, | ||
| const char * | name ) |
Set the particle map to a species value.
| handle | populated handle |
| pType | particle type |
| name | species name |
| HRESULT tfRenderingColorMapper_setMapParticleSpeed | ( | struct tfRenderingColorMapperHandle * | handle | ) |
Set the particle map to particle speed.
| handle | populated handle |
| HRESULT tfRenderingColorMapper_setMapParticleVelocityX | ( | struct tfRenderingColorMapperHandle * | handle | ) |
Set the particle map to x-component of particle velocity.
| handle | populated handle |
| HRESULT tfRenderingColorMapper_setMapParticleVelocityY | ( | struct tfRenderingColorMapperHandle * | handle | ) |
Set the particle map to y-component of particle velocity.
| handle | populated handle |
| HRESULT tfRenderingColorMapper_setMapParticleVelocityZ | ( | struct tfRenderingColorMapperHandle * | handle | ) |
Set the particle map to z-component of particle velocity.
| handle | populated handle |
| HRESULT tfRenderingColorMapper_setMaxVal | ( | struct tfRenderingColorMapperHandle * | handle, |
| float | val ) |
Set the maximum map value.
| handle | populated handle |
| val | value |
| HRESULT tfRenderingColorMapper_setMinVal | ( | struct tfRenderingColorMapperHandle * | handle, |
| float | val ) |
Set the minimum map value.
| handle | populated handle |
| val | value |
| HRESULT tfRenderingStyle_destroy | ( | struct tfRenderingStyleHandle * | handle | ) |
Destroy an instance.
| handle | populated handle |
| HRESULT tfRenderingStyle_fromString | ( | struct tfRenderingStyleHandle * | handle, |
| const char * | str ) |
Create from a JSON string representation.
| HRESULT tfRenderingStyle_getColorMapper | ( | struct tfRenderingStyleHandle * | handle, |
| struct tfRenderingColorMapperHandle * | mapper ) |
Get the color mapper, if any.
| handle | populated handle |
| mapper | color mapper |
| HRESULT tfRenderingStyle_getVisible | ( | struct tfRenderingStyleHandle * | handle, |
| bool * | visible ) |
Test whether the instance is visible.
| handle | populated handle |
| visible | visible flag |
| HRESULT tfRenderingStyle_init | ( | struct tfRenderingStyleHandle * | handle | ) |
Initialize an instance.
| handle | handle to populate |
| HRESULT tfRenderingStyle_initC | ( | struct tfRenderingStyleHandle * | handle, |
| float * | color, | ||
| bool | visible ) |
Initialize an instance.
| handle | handle to populate |
| color | 3-element RGB color array |
| visible | visible flag |
| HRESULT tfRenderingStyle_initS | ( | struct tfRenderingStyleHandle * | handle, |
| const char * | colorName, | ||
| bool | visible ) |
Initialize an instance.
| handle | handle to populate |
| colorName | name of a color |
| visible | visible flag |
| HRESULT tfRenderingStyle_setColor | ( | struct tfRenderingStyleHandle * | handle, |
| const char * | colorName ) |
Set the color by name.
| handle | populated handle |
| colorName | name of color |
| HRESULT tfRenderingStyle_setColorMapper | ( | struct tfRenderingStyleHandle * | handle, |
| struct tfRenderingColorMapperHandle * | mapper ) |
Set the color mapper.
| handle | populated handle |
| mapper | color mapper |
| HRESULT tfRenderingStyle_setVisible | ( | struct tfRenderingStyleHandle * | handle, |
| bool | visible ) |
Set whether the instance is visible.
| handle | populated handle |
| visible | visible flag |
| HRESULT tfRenderingStyle_toString | ( | struct tfRenderingStyleHandle * | handle, |
| char ** | str, | ||
| unsigned int * | numChars ) |
Get a JSON string representation.
| handle | populated handle |
| str | string representation; can be used as an argument in a type particle factory |
| numChars | number of characters of string representation |