ivutils
Loading...
Searching...
No Matches
apParaviewSceneConfig Class Reference

Interface class for configuring VTK outputs. More...

#include <vtkdump.h>

Classes

struct  descr_t
 configurations for different polydata objects More...
 

Public Member Functions

virtual vec_type GetScalar (const Vector_3 &x, int scalar_id=0) const
 Returns the value of the current scalar function. The function may be changed by derived classes.
 
virtual std::string SwitchPolyData (const std::string &key_name_o, bool on_scene=true)
 Puts a file with the name key_name.vtp on/off the Paraview scene.
 
virtual int WriteScene (const std::string &dir_name)
 Writes a scene for Paraview containing all VTK objects output by VTK dumpers.
 

Static Public Member Functions

static std::pair< std::string, std::string > SplitName (const std::string &key_name_o)
 splits object name in key and suffix parts
 

Public Attributes

std::string paraview_py = "ap_scene.py"
 The name of Paraview pyhthon script containing the scene description.
 

Friends

template<class contour_t >
int DumpContoursVTK (const std::string &objname, FILE *f, const std::vector< contour_t > &cnt, const std::vector< int > &regids, int first, const std::vector< int > &flags, apParaviewSceneConfig *conf, const apDuplConfig &dupl)
 Flags: 0x1 = do not smooth edges.
 

Detailed Description

Interface class for configuring VTK outputs.

Member Function Documentation

◆ SwitchPolyData()

virtual std::string apParaviewSceneConfig::SwitchPolyData ( const std::string &  key_name_o,
bool  on_scene = true 
)
virtual

Puts a file with the name key_name.vtp on/off the Paraview scene.

Returns
a suffix to be added to filename, if every object resides in a separate file

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