Kinetic Visualization (Visualisierung 2 - S2012)
|
Here our main rendering starts. More...
#include <AppletParticleKinematicImpl.h>
Private Types | |
enum | RaycastMode { DVR_Mode } |
Private Member Functions | |
void | setupScene () |
Sets the scene up. | |
void | setupVolume () |
Initializes the volume. | |
void | setupParticles () |
Initializes the particles. | |
void | initParticleCandidatePositions () |
Initializes the candidate particle positions on the volume. | |
void | updateParticles () |
Updates the particles (must be repeatedly called) | |
void | fireListeners () |
void | computeGradientNormalization () |
Computes the normalized gradient. |
Private Attributes | |
bool | PARTICLE_STICK_DENSITY_LEVEL |
float | PARTICLE_CURVATURE_K |
float | PARTICLE_FLOCKING_K |
float | PARTICLE_FLOCKING_SIGMA |
float | PARTICLE_REPULSION_K |
float | PARTICLE_REPULSION_SIGMA |
float | PARTICLE_USER_PREFERRED_DIRECTION_K |
vl::vec3 | PARTICLE_USER_PREFERRED_DIRECTION |
float | PARTICLE_CROWDED_THRESHOLD |
float | PARTICLE_CROWDED_SIGMA |
bool | ENABLE_PARTICLE_DYING |
bool | RENDER_SMOOTHED_IMAGE |
float | SAMPLE_STEP |
float | SHADING_INTENSITY |
float | GRADIENT_INTENSITY |
float | OPACITY_INTENSITY |
float | PARTICLE_SIZE |
bool | PARTICLES_ENABLED |
bool | PARTICLE_SHADING_ENABLED |
enum AppletParticleKinematicImpl::RaycastMode | MODE |
float | DENSITY_LEVEL |
int | NEIGHBOUR_RADIUS |
int | MAX_NUM_PARTICLES |
float | GRADIENT_MAGNITUDE_THRESHOLD |
float | PREPROCESSING_SIGMA |
bool | PREPROCESSING_GAUSSIAN |
bool | _reloadParticles |
vl::String | _volumeFilename |
Filename of the volume. | |
vl::ref< vl::Transform > | _volumeTr |
Transformation of the volume. | |
vl::ref< vl::Transform > | _light0Tr |
Transformation of the light. | |
vl::ref< vl::Light > | _light0 |
The light. | |
vl::ref< vl::Uniform > | _shadingIntensityUniform |
vl::ref< vl::Uniform > | _sampleStepUniform |
vl::ref< vl::Uniform > | _gradientIntensityUniform |
vl::ref< vl::Uniform > | _opacityIntensityUniform |
vl::ref< vl::Uniform > | _particleSizeUniform |
vl::ref< vl::Uniform > | _particlesEnabledUniform |
vl::ref< vl::Uniform > | _particlesShadingEnabledUniform |
vl::ref< vl::Text > | _valThresholdText |
vl::ref< vl::GLSLProgram > | _GLSL |
main shader | |
vl::ref< vl::GLSLProgram > | _particleProgram |
particle shader | |
vl::ref< vl::Actor > | _volumeAct |
volume 'actor' in the scenegraph | |
vl::ref< vl::RaycastVolume > | _raycastVolume |
volume 'geometry' | |
vl::ref< vl::Image > | _volumeImage |
Volumetric image. | |
vl::ref< vl::Image > | _volumeSmoothedImage |
Smoothed volumetric image. | |
vl::ref< vl::Image > | _volumeGradient |
Gradient image of the volume. | |
vl::ref< vl::Image > | _volumeNormalizedGradient |
Min-Max Normalized gradient of the volume. | |
vl::ref< vl::Image > | _volumeCurvature |
Curvature of the volume. | |
vl::vec3 | _gradientMin |
vl::vec3 | _gradientMax |
std::vector< std::shared_ptr < Particle > > | _particles |
A flat list of particles. | |
std::shared_ptr< ParticleMap > | _particleMap |
Stores a 3D-map of particles. | |
std::vector< vl::vec3 > | _particleCandidatePositions |
List of possible positions in the volume where particles could spawn. | |
vl::ref< vl::Geometry > | _glParticles |
Stores the particle-points. | |
vl::ref< vl::Texture > | _particleTexture |
texture for the particle | |
vl::ref< vl::Texture > | _particleDepthTexture |
Depth map which is generated in the particle rendering pass. | |
vl::ref< vl::Texture > | _particleColorTexture |
Color texture which is generated in the particle rendering pass. | |
vl::ref< vl::Texture > | _normalizedGradientTexture |
Normalized gradient texture. Used in particle rendering and volume rendering. | |
vl::ref < vl::FBOTexture2DAttachment > | _particleDepthAttachment |
vl::ref < vl::FBOTexture2DAttachment > | _particleColorAttachment |
vl::ref< vl::FramebufferObject > | _fboParticles |
vl::ref< vl::Rendering > | _volumeRendering |
Rendering objects for the volume rendering pass. | |
vl::ref< vl::Rendering > | _particleRendering |
Rendering objects for the particle rendering pass. | |
vl::ref< vl::Image > | _transferFunction |
Storage for the transfer function. | |
std::vector < AppletParticleKinematicListener * > | _listeners |
Set of listeners if something has changed. |
Here our main rendering starts.
|
private |
AppletParticleKinematicImpl::AppletParticleKinematicImpl | ( | void | ) |
|
virtual |
|
inlinevirtual |
Implements AppletParticleKinematic.
|
virtual |
Reimplemented from AppletParticleKinematic.
|
private |
Computes the normalized gradient.
|
virtual |
Implements AppletParticleKinematic.
|
virtual |
Implements AppletParticleKinematic.
|
virtual |
Implements AppletParticleKinematic.
|
private |
|
inlinevirtual |
Implements AppletParticleKinematic.
|
inlinevirtual |
Implements AppletParticleKinematic.
|
virtual |
void AppletParticleKinematicImpl::initialize | ( | ) |
|
private |
Initializes the candidate particle positions on the volume.
|
virtual |
|
inline |
|
inlinevirtual |
Implements AppletParticleKinematic.
|
virtual |
Implements AppletParticleKinematic.
|
virtual |
Implements AppletParticleKinematic.
|
virtual |
Implements AppletParticleKinematic.
|
virtual |
Implements AppletParticleKinematic.
|
virtual |
Implements AppletParticleKinematic.
|
virtual |
Implements AppletParticleKinematic.
|
virtual |
Implements AppletParticleKinematic.
|
virtual |
Implements AppletParticleKinematic.
|
virtual |
Implements AppletParticleKinematic.
|
virtual |
Implements AppletParticleKinematic.
|
virtual |
Implements AppletParticleKinematic.
|
virtual |
Implements AppletParticleKinematic.
|
virtual |
Implements AppletParticleKinematic.
|
virtual |
Implements AppletParticleKinematic.
|
virtual |
Implements AppletParticleKinematic.
|
virtual |
Implements AppletParticleKinematic.
|
virtual |
Implements AppletParticleKinematic.
|
virtual |
Implements AppletParticleKinematic.
|
virtual |
Implements AppletParticleKinematic.
|
virtual |
Implements AppletParticleKinematic.
|
virtual |
Implements AppletParticleKinematic.
|
virtual |
Implements AppletParticleKinematic.
|
virtual |
Implements AppletParticleKinematic.
|
private |
Initializes the particles.
|
private |
Sets the scene up.
|
private |
Initializes the volume.
|
virtual |
Implements AppletParticleKinematic.
|
virtual |
Implements AppletParticleKinematic.
|
inline |
|
private |
Updates the particles (must be repeatedly called)
|
virtual |
void AppletParticleKinematicImpl::updateText | ( | ) |
|
inline |
|
private |
|
private |
Stores the particle-points.
|
private |
main shader
|
private |
|
private |
|
private |
|
private |
The light.
|
private |
Transformation of the light.
|
private |
Set of listeners if something has changed.
|
private |
Normalized gradient texture. Used in particle rendering and volume rendering.
|
private |
|
private |
List of possible positions in the volume where particles could spawn.
|
private |
|
private |
Color texture which is generated in the particle rendering pass.
|
private |
|
private |
Depth map which is generated in the particle rendering pass.
|
private |
Stores a 3D-map of particles.
|
private |
particle shader
|
private |
Rendering objects for the particle rendering pass.
|
private |
A flat list of particles.
|
private |
|
private |
|
private |
|
private |
texture for the particle
|
private |
volume 'geometry'
|
private |
|
private |
|
private |
|
private |
Storage for the transfer function.
|
private |
|
private |
volume 'actor' in the scenegraph
|
private |
Curvature of the volume.
|
private |
Filename of the volume.
|
private |
Gradient image of the volume.
|
private |
Volumetric image.
|
private |
Min-Max Normalized gradient of the volume.
|
private |
Rendering objects for the volume rendering pass.
|
private |
Smoothed volumetric image.
|
private |
Transformation of the volume.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |