VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Attributes | Friends

a subclass of bdiParticleDesc, currently reimplements all of configuration file reading and writing. More...

Inheritance diagram for makVrv::DtFxParticleDesc:
Inheritance graph
[legend]

Public Member Functions

 DtFxParticleDesc ()
 default ctor More...
 
virtual ~DtFxParticleDesc ()
 default dtor More...
 
 DtFxParticleDesc (const DtFxParticleDesc &rhs)
 copy constructor More...
 
DtFxParticleDescoperator= (const DtFxParticleDesc &orig)
 assignment operator More...
 
virtual void reset ()
 resets values More...
 
virtual int read_cfg_entries (bdiCfgEntry *cfg_entry)
 reads the description from a config entry More...
 
virtual int write_cfg_entries (bdiCfgReader *cfg_reader)
 writes the description into reader (unused) More...
 
virtual bdiCfgEntry * create_cfg_entry ()
 creates a config entry from the description More...
 
virtual void set_texture_name (const char *chTexFile)
 sets the texture name More...
 
virtual void set_normal_texture_name (const char *chTexFile)
 sets the normal texture name More...
 
virtual void setFileSouce (const char *file_source)
 sets the file source More...
 
virtual void setEdited (bool edited)
 gets if the desc has been edited More...
 
virtual bool edited ()
 gets if the desc has been edited More...
 
virtual void setDiffuseTexture (osg::Texture2D *osg_diffuse_texture)
 set the diffuse texture More...
 
virtual void setNormalTexture (osg::Texture2D *osg_normal_texture)
 set the normal texture More...
 
float emissivityFactor ()
 these are lightweight accessor called multiple times a frame, meant to avoid friends but also avoiding perf hitshow much will system radiate in the dark More...
 
float materialSpecularity ()
 how much specularity will the material have More...
 
float meterialMetallicness ()
 how metallics is the system More...
 
float hdrGain ()
 brightness multiplier on colors More...
 
float translucency ()
 modifies the amount of light that passes through the particles More...
 
float softness ()
 modifies the amount of light that passes through the particles More...
 
bool useLighting ()
 should lighting be enabled on this system More...
 
osg::Texture2D * diffuseTexture ()
 particle system's diffuse texture More...
 
osg::Texture2D * normalTexture ()
 
const bdiString & fileSouce ()
 which file the system was from More...
 
const DtFxChildSystemArray & childSystems ()
 list of child systems to create More...
 

Static Public Member Functions

static float smooth_interpolate_keys (FloatKeyFrameArray &array, char *prev_keyframe, float time)
 helper functions that can move into base class More...
 
static bdiVec4f smooth_interpolate_keys (ColorKeyFrameArray &array, char *prev_keyframe, float time)
 helper functions that could move into base class More...
 
static float smooth_interpolate_keys (FloatKeyFrameArray &array, float speed)
 helper functions that can move into base class More...
 
static bdiVec4f smooth_interpolate_keys (ColorKeyFrameArray &array, float speed)
 helper functions that could move into base class More...
 

Public Attributes

bool m_looked_up_normal_texture
 
bdiString m_normal_map_file_name
 

Protected Attributes

bdiVec3f m_position_offset
 additional data added by vantage position offset of psystem More...
 
bdiVec3fPtrArray m_additional_offsets
 
float m_hdr_gain
 multiplier for hdr More...
 
float m_emissivity_factor
 multiplier for emissivity More...
 
float m_material_specularity
 how much specularity will the material have More...
 
float m_material_metallicness
 how metallic is the system More...
 
bool m_use_lighting
 skip lighting calculations More...
 
float m_translucency
 modifies the amount of light that passes through the particles More...
 
float m_softness
 depth buffer softness smoothing More...
 
float m_particle_mass
 impacts how wind impacts particle. More...
 
float m_air_resistance_factor
 
float m_rotation_variation
 noise rotation variation added to current rot speed More...
 
float m_initial_rotation_variation
 noise rotation at start More...
 
float m_initial_velocity_scale
 how the velocity of the emitter should get More...
 
bool m_normalized_animation_time
 should the the particle animation play out over the lifetime. More...
 
bool m_color_by_age
 
bool m_size_by_age
 
float m_color_speed_scale
 
float m_size_speed_scale
 
int m_num_to_release_var
 variable release rate More...
 
float m_release_frequency_var
 variable release rate More...
 
bool m_normalize_light_time
 should light time get normalized More...
 
bdiString myFileSouce
 which file is this from More...
 
bool m_edited
 has this description been edited More...
 
osg::ref_ptr< osg::Texture2D > myOsgDiffuseTexture
 osg lookup of texture More...
 
osg::ref_ptr< osg::Texture2D > myOsgNormalTexture
 
DtFxCollisionObjectArray m_collision_objects
 
DtFxChildSystemArray m_child_system_descs
 references to the other child systems More...
 
DtFxForceArray m_additional_forces
 list of additional forces More...
 
int myArtPartOverride
 
bdiVec3f myArtPartOverrideOffset
 
bdiString mySizeScript
 scripts More...
 
bdiString myLifeTimeScript
 
bdiString myReleaseRateScript
 
bdiString myStreakScript
 
bdiString myColorScript
 
bdiString myRotationSpeedScript
 

Friends

class DtFxParticleSystem
 
class bdiQWidgetParticleSystem
 

Detailed Description

a subclass of bdiParticleDesc, currently reimplements all of configuration file reading and writing.

Constructor & Destructor Documentation

makVrv::DtFxParticleDesc::DtFxParticleDesc ( )

default ctor

virtual makVrv::DtFxParticleDesc::~DtFxParticleDesc ( )
virtual

default dtor

makVrv::DtFxParticleDesc::DtFxParticleDesc ( const DtFxParticleDesc rhs)

copy constructor

Member Function Documentation

DtFxParticleDesc& makVrv::DtFxParticleDesc::operator= ( const DtFxParticleDesc orig)

assignment operator

virtual void makVrv::DtFxParticleDesc::reset ( )
virtual

resets values

virtual int makVrv::DtFxParticleDesc::read_cfg_entries ( bdiCfgEntry *  cfg_entry)
virtual

reads the description from a config entry

virtual int makVrv::DtFxParticleDesc::write_cfg_entries ( bdiCfgReader *  cfg_reader)
virtual

writes the description into reader (unused)

virtual bdiCfgEntry* makVrv::DtFxParticleDesc::create_cfg_entry ( )
virtual

creates a config entry from the description

virtual void makVrv::DtFxParticleDesc::set_texture_name ( const char chTexFile)
virtual

sets the texture name

virtual void makVrv::DtFxParticleDesc::set_normal_texture_name ( const char chTexFile)
virtual

sets the normal texture name

virtual void makVrv::DtFxParticleDesc::setFileSouce ( const char file_source)
virtual

sets the file source

virtual void makVrv::DtFxParticleDesc::setEdited ( bool  edited)
virtual

gets if the desc has been edited

virtual bool makVrv::DtFxParticleDesc::edited ( )
virtual

gets if the desc has been edited

virtual void makVrv::DtFxParticleDesc::setDiffuseTexture ( osg::Texture2D *  osg_diffuse_texture)
virtual

set the diffuse texture

virtual void makVrv::DtFxParticleDesc::setNormalTexture ( osg::Texture2D *  osg_normal_texture)
virtual

set the normal texture

float makVrv::DtFxParticleDesc::emissivityFactor ( )
inline

these are lightweight accessor called multiple times a frame, meant to avoid friends but also avoiding perf hitshow much will system radiate in the dark

float makVrv::DtFxParticleDesc::materialSpecularity ( )
inline

how much specularity will the material have

float makVrv::DtFxParticleDesc::meterialMetallicness ( )
inline

how metallics is the system

float makVrv::DtFxParticleDesc::hdrGain ( )
inline

brightness multiplier on colors

float makVrv::DtFxParticleDesc::translucency ( )
inline

modifies the amount of light that passes through the particles

float makVrv::DtFxParticleDesc::softness ( )
inline

modifies the amount of light that passes through the particles

bool makVrv::DtFxParticleDesc::useLighting ( )
inline

should lighting be enabled on this system

osg::Texture2D* makVrv::DtFxParticleDesc::diffuseTexture ( )
inline

particle system's diffuse texture

osg::Texture2D* makVrv::DtFxParticleDesc::normalTexture ( )
inline
const bdiString& makVrv::DtFxParticleDesc::fileSouce ( )
inline

which file the system was from

const DtFxChildSystemArray& makVrv::DtFxParticleDesc::childSystems ( )
inline

list of child systems to create

static float makVrv::DtFxParticleDesc::smooth_interpolate_keys ( FloatKeyFrameArray &  array,
char prev_keyframe,
float  time 
)
static

helper functions that can move into base class

static bdiVec4f makVrv::DtFxParticleDesc::smooth_interpolate_keys ( ColorKeyFrameArray &  array,
char prev_keyframe,
float  time 
)
static

helper functions that could move into base class

static float makVrv::DtFxParticleDesc::smooth_interpolate_keys ( FloatKeyFrameArray &  array,
float  speed 
)
static

helper functions that can move into base class

static bdiVec4f makVrv::DtFxParticleDesc::smooth_interpolate_keys ( ColorKeyFrameArray &  array,
float  speed 
)
static

helper functions that could move into base class

Friends And Related Function Documentation

friend class DtFxParticleSystem
friend
friend class bdiQWidgetParticleSystem
friend

Member Data Documentation

bool makVrv::DtFxParticleDesc::m_looked_up_normal_texture
bdiString makVrv::DtFxParticleDesc::m_normal_map_file_name
bdiVec3f makVrv::DtFxParticleDesc::m_position_offset
protected

additional data added by vantage position offset of psystem

bdiVec3fPtrArray makVrv::DtFxParticleDesc::m_additional_offsets
protected
float makVrv::DtFxParticleDesc::m_hdr_gain
protected

multiplier for hdr

float makVrv::DtFxParticleDesc::m_emissivity_factor
protected

multiplier for emissivity

float makVrv::DtFxParticleDesc::m_material_specularity
protected

how much specularity will the material have

float makVrv::DtFxParticleDesc::m_material_metallicness
protected

how metallic is the system

bool makVrv::DtFxParticleDesc::m_use_lighting
protected

skip lighting calculations

float makVrv::DtFxParticleDesc::m_translucency
protected

modifies the amount of light that passes through the particles

float makVrv::DtFxParticleDesc::m_softness
protected

depth buffer softness smoothing

float makVrv::DtFxParticleDesc::m_particle_mass
protected

impacts how wind impacts particle.

float makVrv::DtFxParticleDesc::m_air_resistance_factor
protected
float makVrv::DtFxParticleDesc::m_rotation_variation
protected

noise rotation variation added to current rot speed

float makVrv::DtFxParticleDesc::m_initial_rotation_variation
protected

noise rotation at start

float makVrv::DtFxParticleDesc::m_initial_velocity_scale
protected

how the velocity of the emitter should get

bool makVrv::DtFxParticleDesc::m_normalized_animation_time
protected

should the the particle animation play out over the lifetime.

bool makVrv::DtFxParticleDesc::m_color_by_age
protected
bool makVrv::DtFxParticleDesc::m_size_by_age
protected
float makVrv::DtFxParticleDesc::m_color_speed_scale
protected
float makVrv::DtFxParticleDesc::m_size_speed_scale
protected
int makVrv::DtFxParticleDesc::m_num_to_release_var
protected

variable release rate

float makVrv::DtFxParticleDesc::m_release_frequency_var
protected

variable release rate

bool makVrv::DtFxParticleDesc::m_normalize_light_time
protected

should light time get normalized

bdiString makVrv::DtFxParticleDesc::myFileSouce
protected

which file is this from

bool makVrv::DtFxParticleDesc::m_edited
protected

has this description been edited

osg::ref_ptr<osg::Texture2D> makVrv::DtFxParticleDesc::myOsgDiffuseTexture
protected

osg lookup of texture

osg::ref_ptr<osg::Texture2D> makVrv::DtFxParticleDesc::myOsgNormalTexture
protected
DtFxCollisionObjectArray makVrv::DtFxParticleDesc::m_collision_objects
protected
DtFxChildSystemArray makVrv::DtFxParticleDesc::m_child_system_descs
protected

references to the other child systems

DtFxForceArray makVrv::DtFxParticleDesc::m_additional_forces
protected

list of additional forces

int makVrv::DtFxParticleDesc::myArtPartOverride
protected
bdiVec3f makVrv::DtFxParticleDesc::myArtPartOverrideOffset
protected
bdiString makVrv::DtFxParticleDesc::mySizeScript
protected

scripts

bdiString makVrv::DtFxParticleDesc::myLifeTimeScript
protected
bdiString makVrv::DtFxParticleDesc::myReleaseRateScript
protected
bdiString makVrv::DtFxParticleDesc::myStreakScript
protected
bdiString makVrv::DtFxParticleDesc::myColorScript
protected
bdiString makVrv::DtFxParticleDesc::myRotationSpeedScript
protected

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

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)