3Depict
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ExportAnimationDialog Class Reference

#include <animateFilterDialog.h>

Inheritance diagram for ExportAnimationDialog:
Inheritance graph
[legend]
Collaboration diagram for ExportAnimationDialog:
Collaboration graph
[legend]

Public Member Functions

 ExportAnimationDialog (wxWindow *parent, int id, const wxString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_DIALOG_STYLE)
 
 ~ExportAnimationDialog ()
 
void prepare ()
 Must be called before displaying dialog, and after setting tree. More...
 
std::string getFilename (unsigned int frame, unsigned int nameType, unsigned int number=0) const
 
unsigned int getImageWidth () const
 
unsigned int getImageHeight () const
 
size_t getNumFrames () const
 
bool getModifiedTree (size_t frame, FilterTree &t, bool &needUp) const
 
void setTree (const FilterTree &origTree)
 
bool wantsImages () const
 
bool wantsPlots () const
 
bool wantsIons () const
 
bool wantsRanges () const
 
bool wantsVoxels () const
 
bool wantsOnlyChanges () const
 
size_t getRangeFormat () const
 Obtain the format the user wants to save ranges in. More...
 
void getAnimationState (PropertyAnimator &prop, std::vector< std::pair< std::string, size_t > > &pathMapping) const
 Obtain the current state from the animation (keyframes) More...
 
void setAnimationState (const PropertyAnimator &prop, const std::vector< std::pair< std::string, size_t > > &pathMapping)
 Obtain the current state from the animation. More...
 
void getPathMapping (std::vector< std::pair< std::string, size_t > > &mapping, bool allowMissing=false) const
 Obtain the filter tree path string->animation ID mapping. More...
 
void setDefImSize (unsigned int w, unsigned int h)
 
virtual void OnFilterTreeCtrlSelChanged (wxTreeEvent &event)
 
virtual void OnFilterGridCellChanging (wxPropertyGridEvent &event)
 
virtual void OnFilterGridCellSelected (wxPropertyGridEvent &event)
 
virtual void OnAnimateGridCellEditorShow (wxGridEvent &event)
 
virtual void OnFrameGridCellEditorShow (wxGridEvent &event)
 
virtual void OnButtonKeyFrameRemove (wxCommandEvent &event)
 
virtual void OnOutputDirText (wxCommandEvent &event)
 
virtual void OnButtonWorkDir (wxCommandEvent &event)
 
virtual void OnCheckOutDataChange (wxCommandEvent &event)
 
virtual void OnCheckImageOutput (wxCommandEvent &event)
 
virtual void OnImageFilePrefix (wxCommandEvent &event)
 
virtual void OnBtnResolution (wxCommandEvent &event)
 
virtual void OnCheckPointOutput (wxCommandEvent &event)
 
virtual void OnCheckPlotOutput (wxCommandEvent &event)
 
virtual void OnCheckVoxelOutput (wxCommandEvent &event)
 
virtual void OnCheckRangeOutput (wxCommandEvent &event)
 
virtual void OnRangeTypeCombo (wxCommandEvent &event)
 
virtual void OnFrameViewSlider (wxScrollEvent &event)
 
virtual void OnTextFrame (wxCommandEvent &event)
 
virtual void OnButtonCancel (wxCommandEvent &event)
 
virtual void OnButtonOK (wxCommandEvent &event)
 
virtual void OnFilterViewUnsplit (wxSplitterEvent &event)
 

Protected Member Functions

 DECLARE_EVENT_TABLE ()
 

Protected Attributes

wxStaticBox * outputDataSizer_staticbox
 
wxStaticBox * keyFramesSizer_staticbox
 
wxStaticBox * filterPropertySizer_staticbox
 
wxTreeCtrl * filterTreeCtrl
 
wxPropertyGrid * propertyGrid
 
wxPanel * filterLeftPane
 
wxGrid * animationGrid
 
wxButton * keyFrameRemoveButton
 
wxPanel * filterRightPane
 
wxSplitterWindow * splitPaneFilter
 
wxPanel * filterViewPane
 
wxStaticText * labelWorkDir
 
wxTextCtrl * textWorkDir
 
wxButton * buttonWorkDir
 
wxCheckBox * checkOutOnlyChanged
 
wxStaticLine * outputDataSepLine
 
wxStaticText * labelDataType
 
wxCheckBox * checkImageOutput
 
wxStaticText * lblImageName
 
wxTextCtrl * textImageName
 
wxStaticText * labelImageSize
 
wxTextCtrl * textImageSize
 
wxButton * buttonImageSize
 
wxCheckBox * checkPoints
 
wxCheckBox * checkPlotData
 
wxCheckBox * checkVoxelData
 
wxCheckBox * checkRangeData
 
wxStaticText * labelRangeFormat
 
wxChoice * comboRangeFormat
 
wxStaticLine * static_line_1
 
wxStaticText * labelFrame
 
wxSlider * frameSlider
 
wxTextCtrl * textFrame
 
wxGrid * framePropGrid
 
wxPanel * frameViewPane
 
wxNotebook * viewNotebook
 
wxButton * cancelButton
 
wxButton * okButton
 

Constructor & Destructor Documentation

◆ ExportAnimationDialog()

ExportAnimationDialog::ExportAnimationDialog ( wxWindow *  parent,
int  id,
const wxString &  title,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = wxDEFAULT_DIALOG_STYLE 
)

◆ ~ExportAnimationDialog()

ExportAnimationDialog::~ExportAnimationDialog ( )

Member Function Documentation

◆ DECLARE_EVENT_TABLE()

ExportAnimationDialog::DECLARE_EVENT_TABLE ( )
protected

◆ getAnimationState()

void ExportAnimationDialog::getAnimationState ( PropertyAnimator prop,
std::vector< std::pair< std::string, size_t > > &  pathMapping 
) const

Obtain the current state from the animation (keyframes)

References getPathMapping().

Referenced by MainWindowFrame::OnFileExportFilterVideo(), and wantsOnlyChanges().

Here is the caller graph for this function:

◆ getFilename()

std::string ExportAnimationDialog::getFilename ( unsigned int  frame,
unsigned int  nameType,
unsigned int  number = 0 
) const

◆ getImageHeight()

unsigned int ExportAnimationDialog::getImageHeight ( ) const
inline

Referenced by MainWindowFrame::OnFileExportFilterVideo().

Here is the caller graph for this function:

◆ getImageWidth()

unsigned int ExportAnimationDialog::getImageWidth ( ) const
inline

Referenced by MainWindowFrame::OnFileExportFilterVideo().

Here is the caller graph for this function:

◆ getModifiedTree()

bool ExportAnimationDialog::getModifiedTree ( size_t  frame,
FilterTree t,
bool &  needUp 
) const

◆ getNumFrames()

size_t ExportAnimationDialog::getNumFrames ( ) const
inline

References PropertyAnimator::getMaxFrame(), and getModifiedTree().

Referenced by MainWindowFrame::OnFileExportFilterVideo().

Here is the caller graph for this function:

◆ getPathMapping()

void ExportAnimationDialog::getPathMapping ( std::vector< std::pair< std::string, size_t > > &  mapping,
bool  allowMissing = false 
) const

◆ getRangeFormat()

size_t ExportAnimationDialog::getRangeFormat ( ) const

Obtain the format the user wants to save ranges in.

Referenced by MainWindowFrame::OnFileExportFilterVideo(), and wantsOnlyChanges().

Here is the caller graph for this function:

◆ OnAnimateGridCellEditorShow()

void ExportAnimationDialog::OnAnimateGridCellEditorShow ( wxGridEvent &  event)
virtual

Referenced by ~ExportAnimationDialog().

Here is the caller graph for this function:

◆ OnBtnResolution()

void ExportAnimationDialog::OnBtnResolution ( wxCommandEvent &  event)
virtual

◆ OnButtonCancel()

void ExportAnimationDialog::OnButtonCancel ( wxCommandEvent &  event)
virtual

Referenced by ~ExportAnimationDialog().

Here is the caller graph for this function:

◆ OnButtonKeyFrameRemove()

void ExportAnimationDialog::OnButtonKeyFrameRemove ( wxCommandEvent &  event)
virtual

◆ OnButtonOK()

void ExportAnimationDialog::OnButtonOK ( wxCommandEvent &  event)
virtual

Referenced by ~ExportAnimationDialog().

Here is the caller graph for this function:

◆ OnButtonWorkDir()

void ExportAnimationDialog::OnButtonWorkDir ( wxCommandEvent &  event)
virtual

References stlStr(), textWorkDir, and TRANS.

Referenced by ~ExportAnimationDialog().

Here is the caller graph for this function:

◆ OnCheckImageOutput()

void ExportAnimationDialog::OnCheckImageOutput ( wxCommandEvent &  event)
virtual

References checkImageOutput.

Referenced by ~ExportAnimationDialog().

Here is the caller graph for this function:

◆ OnCheckOutDataChange()

void ExportAnimationDialog::OnCheckOutDataChange ( wxCommandEvent &  event)
virtual

References checkOutOnlyChanged.

Referenced by ~ExportAnimationDialog().

Here is the caller graph for this function:

◆ OnCheckPlotOutput()

void ExportAnimationDialog::OnCheckPlotOutput ( wxCommandEvent &  event)
virtual

References checkPlotData.

Referenced by ~ExportAnimationDialog().

Here is the caller graph for this function:

◆ OnCheckPointOutput()

void ExportAnimationDialog::OnCheckPointOutput ( wxCommandEvent &  event)
virtual

References checkPoints.

Referenced by ~ExportAnimationDialog().

Here is the caller graph for this function:

◆ OnCheckRangeOutput()

void ExportAnimationDialog::OnCheckRangeOutput ( wxCommandEvent &  event)
virtual

References checkRangeData, and comboRangeFormat.

Referenced by ~ExportAnimationDialog().

Here is the caller graph for this function:

◆ OnCheckVoxelOutput()

void ExportAnimationDialog::OnCheckVoxelOutput ( wxCommandEvent &  event)
virtual

References checkVoxelData.

Referenced by ~ExportAnimationDialog().

Here is the caller graph for this function:

◆ OnFilterGridCellChanging()

void ExportAnimationDialog::OnFilterGridCellChanging ( wxPropertyGridEvent &  event)
virtual

Referenced by ~ExportAnimationDialog().

Here is the caller graph for this function:

◆ OnFilterGridCellSelected()

void ExportAnimationDialog::OnFilterGridCellSelected ( wxPropertyGridEvent &  event)
virtual

◆ OnFilterTreeCtrlSelChanged()

void ExportAnimationDialog::OnFilterTreeCtrlSelChanged ( wxTreeEvent &  event)
virtual

References filterTreeCtrl, propertyGrid, and updateFilterPropertyGrid().

Referenced by ~ExportAnimationDialog().

Here is the caller graph for this function:

◆ OnFilterViewUnsplit()

void ExportAnimationDialog::OnFilterViewUnsplit ( wxSplitterEvent &  event)
virtual

Referenced by ~ExportAnimationDialog().

Here is the caller graph for this function:

◆ OnFrameGridCellEditorShow()

void ExportAnimationDialog::OnFrameGridCellEditorShow ( wxGridEvent &  event)
virtual

◆ OnFrameViewSlider()

void ExportAnimationDialog::OnFrameViewSlider ( wxScrollEvent &  event)
virtual

References frameSlider, stream_cast(), and textFrame.

Referenced by ~ExportAnimationDialog().

Here is the caller graph for this function:

◆ OnImageFilePrefix()

void ExportAnimationDialog::OnImageFilePrefix ( wxCommandEvent &  event)
virtual

References stlStr(), and textImageName.

Referenced by ~ExportAnimationDialog().

Here is the caller graph for this function:

◆ OnOutputDirText()

void ExportAnimationDialog::OnOutputDirText ( wxCommandEvent &  event)
virtual

References stlStr(), and textWorkDir.

Referenced by ~ExportAnimationDialog().

Here is the caller graph for this function:

◆ OnRangeTypeCombo()

void ExportAnimationDialog::OnRangeTypeCombo ( wxCommandEvent &  event)
virtual

Referenced by ~ExportAnimationDialog().

Here is the caller graph for this function:

◆ OnTextFrame()

void ExportAnimationDialog::OnTextFrame ( wxCommandEvent &  event)
virtual

References stlStr(), stream_cast(), and textFrame.

Referenced by ~ExportAnimationDialog().

Here is the caller graph for this function:

◆ prepare()

void ExportAnimationDialog::prepare ( )

◆ setAnimationState()

void ExportAnimationDialog::setAnimationState ( const PropertyAnimator prop,
const std::vector< std::pair< std::string, size_t > > &  pathMapping 
)

Obtain the current state from the animation.

References getPathMapping(), and PropertyAnimator::updateMappings().

Referenced by MainWindowFrame::OnFileExportFilterVideo(), and wantsOnlyChanges().

Here is the caller graph for this function:

◆ setDefImSize()

void ExportAnimationDialog::setDefImSize ( unsigned int  w,
unsigned int  h 
)

References stream_cast(), and textImageSize.

Referenced by MainWindowFrame::OnFileExportFilterVideo(), and wantsOnlyChanges().

Here is the caller graph for this function:

◆ setTree()

void ExportAnimationDialog::setTree ( const FilterTree origTree)
inline

Referenced by MainWindowFrame::OnFileExportFilterVideo().

Here is the caller graph for this function:

◆ wantsImages()

bool ExportAnimationDialog::wantsImages ( ) const
inline

Referenced by MainWindowFrame::OnFileExportFilterVideo().

Here is the caller graph for this function:

◆ wantsIons()

bool ExportAnimationDialog::wantsIons ( ) const
inline

Referenced by MainWindowFrame::OnFileExportFilterVideo().

Here is the caller graph for this function:

◆ wantsOnlyChanges()

bool ExportAnimationDialog::wantsOnlyChanges ( ) const
inline

References getAnimationState(), getPathMapping(), getRangeFormat(), setAnimationState(), and setDefImSize().

Referenced by MainWindowFrame::OnFileExportFilterVideo().

Here is the caller graph for this function:

◆ wantsPlots()

bool ExportAnimationDialog::wantsPlots ( ) const
inline

Referenced by MainWindowFrame::OnFileExportFilterVideo().

Here is the caller graph for this function:

◆ wantsRanges()

bool ExportAnimationDialog::wantsRanges ( ) const
inline

Referenced by MainWindowFrame::OnFileExportFilterVideo().

Here is the caller graph for this function:

◆ wantsVoxels()

bool ExportAnimationDialog::wantsVoxels ( ) const
inline

Referenced by MainWindowFrame::OnFileExportFilterVideo().

Here is the caller graph for this function:

Member Data Documentation

◆ animationGrid

wxGrid* ExportAnimationDialog::animationGrid
protected

◆ buttonImageSize

wxButton* ExportAnimationDialog::buttonImageSize
protected

◆ buttonWorkDir

wxButton* ExportAnimationDialog::buttonWorkDir
protected

◆ cancelButton

wxButton* ExportAnimationDialog::cancelButton
protected

◆ checkImageOutput

wxCheckBox* ExportAnimationDialog::checkImageOutput
protected

◆ checkOutOnlyChanged

wxCheckBox* ExportAnimationDialog::checkOutOnlyChanged
protected

◆ checkPlotData

wxCheckBox* ExportAnimationDialog::checkPlotData
protected

◆ checkPoints

wxCheckBox* ExportAnimationDialog::checkPoints
protected

◆ checkRangeData

wxCheckBox* ExportAnimationDialog::checkRangeData
protected

◆ checkVoxelData

wxCheckBox* ExportAnimationDialog::checkVoxelData
protected

◆ comboRangeFormat

wxChoice* ExportAnimationDialog::comboRangeFormat
protected

◆ filterLeftPane

wxPanel* ExportAnimationDialog::filterLeftPane
protected

◆ filterPropertySizer_staticbox

wxStaticBox* ExportAnimationDialog::filterPropertySizer_staticbox
protected

◆ filterRightPane

wxPanel* ExportAnimationDialog::filterRightPane
protected

◆ filterTreeCtrl

wxTreeCtrl* ExportAnimationDialog::filterTreeCtrl
protected

◆ filterViewPane

wxPanel* ExportAnimationDialog::filterViewPane
protected

◆ framePropGrid

wxGrid* ExportAnimationDialog::framePropGrid
protected

◆ frameSlider

wxSlider* ExportAnimationDialog::frameSlider
protected

◆ frameViewPane

wxPanel* ExportAnimationDialog::frameViewPane
protected

◆ keyFrameRemoveButton

wxButton* ExportAnimationDialog::keyFrameRemoveButton
protected

◆ keyFramesSizer_staticbox

wxStaticBox* ExportAnimationDialog::keyFramesSizer_staticbox
protected

◆ labelDataType

wxStaticText* ExportAnimationDialog::labelDataType
protected

◆ labelFrame

wxStaticText* ExportAnimationDialog::labelFrame
protected

◆ labelImageSize

wxStaticText* ExportAnimationDialog::labelImageSize
protected

◆ labelRangeFormat

wxStaticText* ExportAnimationDialog::labelRangeFormat
protected

◆ labelWorkDir

wxStaticText* ExportAnimationDialog::labelWorkDir
protected

◆ lblImageName

wxStaticText* ExportAnimationDialog::lblImageName
protected

◆ okButton

wxButton* ExportAnimationDialog::okButton
protected

◆ outputDataSepLine

wxStaticLine* ExportAnimationDialog::outputDataSepLine
protected

◆ outputDataSizer_staticbox

wxStaticBox* ExportAnimationDialog::outputDataSizer_staticbox
protected

◆ propertyGrid

wxPropertyGrid* ExportAnimationDialog::propertyGrid
protected

◆ splitPaneFilter

wxSplitterWindow* ExportAnimationDialog::splitPaneFilter
protected

◆ static_line_1

wxStaticLine* ExportAnimationDialog::static_line_1
protected

◆ textFrame

wxTextCtrl* ExportAnimationDialog::textFrame
protected

◆ textImageName

wxTextCtrl* ExportAnimationDialog::textImageName
protected

◆ textImageSize

wxTextCtrl* ExportAnimationDialog::textImageSize
protected

◆ textWorkDir

wxTextCtrl* ExportAnimationDialog::textWorkDir
protected

◆ viewNotebook

wxNotebook* ExportAnimationDialog::viewNotebook
protected

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