TTK
Loading...
Searching...
No Matches
vtkProgram< ttkModule > Class Template Reference

#include <ttkProgramBase.h>

Inheritance diagram for vtkProgram< ttkModule >:
ttkProgramBase ttk::ProgramBase ttk::Debug ttk::BaseClass

Public Member Functions

 vtkProgram ()
int run () override
Public Member Functions inherited from ttkProgramBase
 ttkProgramBase ()
 ~ttkProgramBase () override=default
int execute () override
 Set the arguments of your ttk module and execute it here.
vtkDataSet * getInput (const int &inputId)
int getNumberOfInputs ()
int save () const override
 Save the output(s) of the TTK module.
virtual int setTTKmodule (vtkDataSetAlgorithm *ttkModule)
Public Member Functions inherited from ttk::ProgramBase
 ProgramBase ()
 ~ProgramBase () override=default
virtual int init (int &argc, char **argv)
Public Member Functions inherited from ttk::Debug
 Debug ()
 ~Debug () override
virtual int setDebugLevel (const int &debugLevel)
int setWrapper (const Wrapper *wrapper) override
int printMsg (const std::string &msg, const debug::Priority &priority=debug::Priority::INFO, const debug::LineMode &lineMode=debug::LineMode::NEW, std::ostream &stream=std::cout) const
int printMsg (const std::vector< std::string > &msgs, const debug::Priority &priority=debug::Priority::INFO, const debug::LineMode &lineMode=debug::LineMode::NEW, std::ostream &stream=std::cout) const
int printErr (const std::string &msg, const debug::LineMode &lineMode=debug::LineMode::NEW, std::ostream &stream=std::cerr) const
int printWrn (const std::string &msg, const debug::LineMode &lineMode=debug::LineMode::NEW, std::ostream &stream=std::cerr) const
int printMsg (const std::string &msg, const double &progress, const double &time, const int &threads, const double &memory, const debug::LineMode &lineMode=debug::LineMode::NEW, const debug::Priority &priority=debug::Priority::PERFORMANCE, std::ostream &stream=std::cout) const
int printMsg (const std::string &msg, const double &progress, const double &time, const debug::LineMode &lineMode=debug::LineMode::NEW, const debug::Priority &priority=debug::Priority::PERFORMANCE, std::ostream &stream=std::cout) const
int printMsg (const std::string &msg, const double &progress, const double &time, const int &threads, const debug::LineMode &lineMode=debug::LineMode::NEW, const debug::Priority &priority=debug::Priority::PERFORMANCE, std::ostream &stream=std::cout) const
int printMsg (const std::string &msg, const double &progress, const debug::LineMode &lineMode=debug::LineMode::NEW, const debug::Priority &priority=debug::Priority::PERFORMANCE, std::ostream &stream=std::cout) const
int printMsg (const std::string &msg, const double &progress, const debug::Priority &priority, const debug::LineMode &lineMode=debug::LineMode::NEW, std::ostream &stream=std::cout) const
int printMsg (const std::vector< std::vector< std::string > > &rows, const debug::Priority &priority=debug::Priority::INFO, const bool hasHeader=true, const debug::LineMode &lineMode=debug::LineMode::NEW, std::ostream &stream=std::cout) const
int printMsg (const debug::Separator &separator, const debug::LineMode &lineMode=debug::LineMode::NEW, const debug::Priority &priority=debug::Priority::INFO, std::ostream &stream=std::cout) const
int printMsg (const debug::Separator &separator, const debug::Priority &priority, const debug::LineMode &lineMode=debug::LineMode::NEW, std::ostream &stream=std::cout) const
int printMsg (const std::string &msg, const debug::Separator &separator, const debug::LineMode &lineMode=debug::LineMode::NEW, const debug::Priority &priority=debug::Priority::INFO, std::ostream &stream=std::cout) const
void setDebugMsgPrefix (const std::string &prefix)
Public Member Functions inherited from ttk::BaseClass
 BaseClass ()
virtual ~BaseClass ()=default
int getThreadNumber () const
virtual int setThreadNumber (const int threadNumber)

Public Attributes

vtkSmartPointer< ttkModule > ttkObject_
Public Attributes inherited from ttk::ProgramBase
CommandLineParser parser_

Additional Inherited Members

Protected Member Functions inherited from ttkProgramBase
template<class vtkReaderClass>
int load (const std::string &fileName, std::vector< vtkSmartPointer< vtkReaderClass > > &readerList)
int load (const std::vector< std::string > &inputPaths) override
 Load a sequence of input data-sets.
template<class vtkWriterClass>
int save (const int &outputPortId) const
Protected Member Functions inherited from ttk::Debug
int printMsgInternal (const std::string &msg, const std::string &right, const std::string &filler, const debug::Priority &priority=debug::Priority::INFO, const debug::LineMode &lineMode=debug::LineMode::NEW, std::ostream &stream=std::cout) const
int printMsgInternal (const std::string &msg, const debug::Priority &priority, const debug::LineMode &lineMode, std::ostream &stream=std::cout) const
int welcomeMsg (std::ostream &stream)
Protected Attributes inherited from ttkProgramBase
std::vector< vtkDataSet * > inputs_
std::vector< vtkSmartPointer< vtkXMLImageDataReader > > imageDataReaders_
std::vector< vtkSmartPointer< vtkXMLPolyDataReader > > polyDataReaders_
std::vector< vtkSmartPointer< vtkXMLUnstructuredGridReader > > unstructuredGridReaders_
vtkDataSetAlgorithm * vtkWrapper_
Protected Attributes inherited from ttk::ProgramBase
std::string outputPath_
DebugttkModule_
Protected Attributes inherited from ttk::Debug
int debugLevel_
std::string debugMsgPrefix_
std::string debugMsgNamePrefix_
Protected Attributes inherited from ttk::BaseClass
bool lastObject_
int threadNumber_
Wrapperwrapper_
Static Protected Attributes inherited from ttk::Debug
static COMMON_EXPORTS debug::LineMode lastLineMode = ttk::debug::LineMode::NEW

Detailed Description

template<class ttkModule>
class vtkProgram< ttkModule >

Definition at line 101 of file ttkProgramBase.h.

Constructor & Destructor Documentation

◆ vtkProgram()

template<class ttkModule>
vtkProgram< ttkModule >::vtkProgram ( )
inline

Definition at line 104 of file ttkProgramBase.h.

Member Function Documentation

◆ run()

template<class ttkModule>
int vtkProgram< ttkModule >::run ( )
inlineoverridevirtual

Reimplemented from ttkProgramBase.

Definition at line 110 of file ttkProgramBase.h.

Member Data Documentation

◆ ttkObject_

template<class ttkModule>
vtkSmartPointer<ttkModule> vtkProgram< ttkModule >::ttkObject_

Definition at line 114 of file ttkProgramBase.h.


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