3Depict
|
#include <animateFilterDialog.h>
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 () | |
ExportAnimationDialog::ExportAnimationDialog | ( | wxWindow * | parent, |
int | id, | ||
const wxString & | title, | ||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxDefaultSize , |
||
long | style = wxDEFAULT_DIALOG_STYLE |
||
) |
References animationGrid, buttonImageSize, buttonWorkDir, cancelButton, checkImageOutput, checkOutOnlyChanged, checkPlotData, checkPoints, checkRangeData, checkVoxelData, comboRange_choices, comboRangeFormat, filterLeftPane, filterPropertySizer_staticbox, filterRightPane, filterTreeCtrl, filterViewPane, framePropGrid, frameSlider, frameViewPane, ID_ANIMATION_GRID_CTRL, ID_BUTTON_IMAGE_RES, ID_CHECK_IMAGE_OUT, ID_CHECK_ONLYDATACHANGE, ID_CHECK_PLOT_OUT, ID_CHECK_POINT_OUT, ID_CHECK_RANGE_OUT, ID_CHECK_VOXEL_OUT, ID_COMBO_RANGE_TYPE, ID_FILTER_PROPERTY_VALUE_GRID, ID_FILTER_TREE_CTRL, ID_FRAME_SLIDER, ID_FRAME_TEXTBOX, ID_PROPERTY_GRID, ID_SPLIT_FILTERVIEW, ID_TEXTBOX_IMAGEPREFIX, ID_TEXTBOX_IMAGESIZE, ID_TEXTBOX_WORKDIR, keyFrameRemoveButton, keyFramesSizer_staticbox, labelDataType, labelFrame, labelImageSize, labelRangeFormat, labelWorkDir, lblImageName, okButton, outputDataSepLine, outputDataSizer_staticbox, PROPERTY_GRID_STYLE, propertyGrid, RANGE_FORMAT_NUM_OPTIONS, RANGE_FORMAT_RRNG, splitPaneFilter, static_line_1, textFrame, textImageName, textImageSize, textWorkDir, TRANS, and viewNotebook.
ExportAnimationDialog::~ExportAnimationDialog | ( | ) |
References END_EVENT_TABLE(), ID_BTN_CANCEL, ID_BTN_OK, ID_BUTTON_IMAGE_RES, ID_CHECK_IMAGE_OUT, ID_CHECK_ONLYDATACHANGE, ID_CHECK_PLOT_OUT, ID_CHECK_POINT_OUT, ID_CHECK_RANGE_OUT, ID_CHECK_VOXEL_OUT, ID_COMBO_RANGE_TYPE, ID_FILTER_TREE_CTRL, ID_FRAME_SLIDER, ID_FRAME_TEXTBOX, ID_PROPERTY_GRID, ID_SPLIT_FILTERVIEW, ID_TEXTBOX_IMAGEPREFIX, ID_TEXTBOX_WORKDIR, OnAnimateGridCellEditorShow(), OnBtnResolution(), OnButtonCancel(), OnButtonKeyFrameRemove(), OnButtonOK(), OnButtonWorkDir(), OnCheckImageOutput(), OnCheckOutDataChange(), OnCheckPlotOutput(), OnCheckPointOutput(), OnCheckRangeOutput(), OnCheckVoxelOutput(), OnFilterGridCellChanging(), OnFilterGridCellSelected(), OnFilterTreeCtrlSelChanged(), OnFilterViewUnsplit(), OnFrameViewSlider(), OnImageFilePrefix(), OnOutputDirText(), OnRangeTypeCombo(), and OnTextFrame().
|
protected |
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().
std::string ExportAnimationDialog::getFilename | ( | unsigned int | frame, |
unsigned int | nameType, | ||
unsigned int | number = 0 |
||
) | const |
References ASSERT, extension, FILENAME_IMAGE, FILENAME_IONS, FILENAME_PLOT, FILENAME_RANGE, FILENAME_VOXEL, RANGE_FORMAT_NUM_OPTIONS, stlStr(), and stream_cast().
Referenced by MainWindowFrame::OnFileExportFilterVideo().
|
inline |
Referenced by MainWindowFrame::OnFileExportFilterVideo().
|
inline |
Referenced by MainWindowFrame::OnFileExportFilterVideo().
bool ExportAnimationDialog::getModifiedTree | ( | size_t | frame, |
FilterTree & | t, | ||
bool & | needUp | ||
) | const |
References PropertyAnimator::getInterpolatedFilterData(), PropertyAnimator::getPropertiesAtFrame(), and FilterTree::setFilterProperty().
Referenced by getNumFrames(), and MainWindowFrame::OnFileExportFilterVideo().
|
inline |
References PropertyAnimator::getMaxFrame(), and getModifiedTree().
Referenced by MainWindowFrame::OnFileExportFilterVideo().
void ExportAnimationDialog::getPathMapping | ( | std::vector< std::pair< std::string, size_t > > & | mapping, |
bool | allowMissing = false |
||
) | const |
Obtain the filter tree path string->animation ID mapping.
References animationGrid, ASSERT, buttonImageSize, buttonWorkDir, cancelButton, checkImageOutput, checkOutOnlyChanged, checkPlotData, checkPoints, checkRangeData, checkVoxelData, comboRangeFormat, filterLeftPane, filterPropertySizer_staticbox, filterRightPane, filterTreeCtrl, filterViewPane, framePropGrid, frameSlider, frameViewPane, PropertyAnimator::getIdList(), keyFrameRemoveButton, keyFramesSizer_staticbox, labelDataType, labelFrame, labelImageSize, labelRangeFormat, labelWorkDir, lblImageName, okButton, outputDataSepLine, outputDataSizer_staticbox, propertyGrid, FilterTree::serialiseToStringPaths(), FilterTree::size(), splitPaneFilter, static_line_1, textFrame, textImageName, textImageSize, textWorkDir, TRANS, and viewNotebook.
Referenced by getAnimationState(), setAnimationState(), and wantsOnlyChanges().
size_t ExportAnimationDialog::getRangeFormat | ( | ) | const |
Obtain the format the user wants to save ranges in.
Referenced by MainWindowFrame::OnFileExportFilterVideo(), and wantsOnlyChanges().
|
virtual |
|
virtual |
References ResolutionDialog::getHeight(), ResolutionDialog::getWidth(), ResolutionDialog::setRes(), stream_cast(), and textImageSize.
Referenced by ~ExportAnimationDialog().
|
virtual |
|
virtual |
References animationGrid, PropertyAnimator::checkSelfConsistent(), PropertyAnimator::getNumProps(), okButton, and PropertyAnimator::removeKeyFrames().
Referenced by ~ExportAnimationDialog().
|
virtual |
|
virtual |
References stlStr(), textWorkDir, and TRANS.
Referenced by ~ExportAnimationDialog().
|
virtual |
References checkImageOutput.
Referenced by ~ExportAnimationDialog().
|
virtual |
References checkOutOnlyChanged.
Referenced by ~ExportAnimationDialog().
|
virtual |
References checkPlotData.
Referenced by ~ExportAnimationDialog().
|
virtual |
References checkPoints.
Referenced by ~ExportAnimationDialog().
|
virtual |
References checkRangeData, and comboRangeFormat.
Referenced by ~ExportAnimationDialog().
|
virtual |
References checkVoxelData.
Referenced by ~ExportAnimationDialog().
|
virtual |
|
virtual |
References FrameProperties::addKeyFrame(), PropertyAnimator::addProp(), ASSERT, choiceStringToVector(), FilterProperty::data, filterTreeCtrl, ChoiceKeyFrameDialog::getChoice(), ColourKeyFrameDialog::getEndFrame(), ColourKeyFrameDialog::getEndValue(), FrameProperties::getInterpMode(), PropertyAnimator::getInterpolatedFilterData(), PropertyAnimator::getMaxFrame(), Filter::getProperties(), FilterPropGroup::getPropValue(), getRealKeyFrame(), StringKeyFrameDialog::getStartFrame(), ColourKeyFrameDialog::getStartFrame(), ChoiceKeyFrameDialog::getStartFrame(), ColourKeyFrameDialog::getStartValue(), StringKeyFrameDialog::getStrings(), ColourKeyFrameDialog::getTransitionMode(), RealKeyFrameDialog< T >::getTransitionMode(), INTERP_LINEAR_COLOUR, INTERP_LINEAR_FLOAT, INTERP_LINEAR_POINT3D, INTERP_LIST, INTERP_STEP, PROPERTY_TYPE_BOOL, PROPERTY_TYPE_CHOICE, PROPERTY_TYPE_COLOUR, PROPERTY_TYPE_INTEGER, PROPERTY_TYPE_POINT3D, PROPERTY_TYPE_REAL, PROPERTY_TYPE_STRING, propertyGrid, ChoiceKeyFrameDialog::setChoices(), FrameProperties::setInterpMode(), stlStr(), stream_cast(), TRANS, TRANSITION_INTERP, TRANSITION_STEP, and FilterProperty::type.
Referenced by ~ExportAnimationDialog().
|
virtual |
References filterTreeCtrl, propertyGrid, and updateFilterPropertyGrid().
Referenced by ~ExportAnimationDialog().
|
virtual |
|
virtual |
|
virtual |
References frameSlider, stream_cast(), and textFrame.
Referenced by ~ExportAnimationDialog().
|
virtual |
References stlStr(), and textImageName.
Referenced by ~ExportAnimationDialog().
|
virtual |
References stlStr(), and textWorkDir.
Referenced by ~ExportAnimationDialog().
|
virtual |
|
virtual |
References stlStr(), stream_cast(), and textFrame.
Referenced by ~ExportAnimationDialog().
void ExportAnimationDialog::prepare | ( | ) |
Must be called before displaying dialog, and after setting tree.
References animationGrid, ASSERT, CELL_ENDFRAME, CELL_FILTERNAME, CELL_KEYINTERPMODE, CELL_PROPERTYNAME, CELL_STARTFRAME, PropertyAnimator::checkSelfConsistent(), filterTreeCtrl, FRAME_CELL_FILTERNAME, FRAME_CELL_PROPNAME, FRAME_CELL_VALUE, framePropGrid, frameSlider, FrameProperties::getFilterId(), FrameProperties::getInterpMode(), PropertyAnimator::getInterpolatedFilterData(), FrameProperties::getMaxFrame(), PropertyAnimator::getMaxFrame(), FrameProperties::getMinFrame(), PropertyAnimator::getNthKeyFrame(), PropertyAnimator::getNumProps(), Filter::getProperties(), PropertyAnimator::getPropertiesAtFrame(), FrameProperties::getPropertyKey(), FilterPropGroup::getPropValue(), Filter::getUserString(), INTERP_NAME, FilterProperty::key, FilterProperty::name, stream_cast(), textFrame, and upWxTreeCtrl().
Referenced by MainWindowFrame::OnFileExportFilterVideo().
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().
void ExportAnimationDialog::setDefImSize | ( | unsigned int | w, |
unsigned int | h | ||
) |
References stream_cast(), and textImageSize.
Referenced by MainWindowFrame::OnFileExportFilterVideo(), and wantsOnlyChanges().
|
inline |
Referenced by MainWindowFrame::OnFileExportFilterVideo().
|
inline |
Referenced by MainWindowFrame::OnFileExportFilterVideo().
|
inline |
Referenced by MainWindowFrame::OnFileExportFilterVideo().
|
inline |
References getAnimationState(), getPathMapping(), getRangeFormat(), setAnimationState(), and setDefImSize().
Referenced by MainWindowFrame::OnFileExportFilterVideo().
|
inline |
Referenced by MainWindowFrame::OnFileExportFilterVideo().
|
inline |
Referenced by MainWindowFrame::OnFileExportFilterVideo().
|
inline |
Referenced by MainWindowFrame::OnFileExportFilterVideo().
|
protected |
Referenced by ExportAnimationDialog(), getPathMapping(), OnButtonKeyFrameRemove(), and prepare().
|
protected |
Referenced by ExportAnimationDialog(), and getPathMapping().
|
protected |
Referenced by ExportAnimationDialog(), and getPathMapping().
|
protected |
Referenced by ExportAnimationDialog(), and getPathMapping().
|
protected |
Referenced by ExportAnimationDialog(), getPathMapping(), and OnCheckImageOutput().
|
protected |
Referenced by ExportAnimationDialog(), getPathMapping(), and OnCheckOutDataChange().
|
protected |
Referenced by ExportAnimationDialog(), getPathMapping(), and OnCheckPlotOutput().
|
protected |
Referenced by ExportAnimationDialog(), getPathMapping(), and OnCheckPointOutput().
|
protected |
Referenced by ExportAnimationDialog(), getPathMapping(), and OnCheckRangeOutput().
|
protected |
Referenced by ExportAnimationDialog(), getPathMapping(), and OnCheckVoxelOutput().
|
protected |
Referenced by ExportAnimationDialog(), getPathMapping(), and OnCheckRangeOutput().
|
protected |
Referenced by ExportAnimationDialog(), and getPathMapping().
|
protected |
Referenced by ExportAnimationDialog(), and getPathMapping().
|
protected |
Referenced by ExportAnimationDialog(), and getPathMapping().
|
protected |
Referenced by ExportAnimationDialog(), getPathMapping(), OnFilterGridCellSelected(), OnFilterTreeCtrlSelChanged(), and prepare().
|
protected |
Referenced by ExportAnimationDialog(), and getPathMapping().
|
protected |
Referenced by ExportAnimationDialog(), getPathMapping(), and prepare().
|
protected |
Referenced by ExportAnimationDialog(), getPathMapping(), OnFrameViewSlider(), and prepare().
|
protected |
Referenced by ExportAnimationDialog(), and getPathMapping().
|
protected |
Referenced by ExportAnimationDialog(), and getPathMapping().
|
protected |
Referenced by ExportAnimationDialog(), and getPathMapping().
|
protected |
Referenced by ExportAnimationDialog(), and getPathMapping().
|
protected |
Referenced by ExportAnimationDialog(), and getPathMapping().
|
protected |
Referenced by ExportAnimationDialog(), and getPathMapping().
|
protected |
Referenced by ExportAnimationDialog(), and getPathMapping().
|
protected |
Referenced by ExportAnimationDialog(), and getPathMapping().
|
protected |
Referenced by ExportAnimationDialog(), and getPathMapping().
|
protected |
Referenced by ExportAnimationDialog(), getPathMapping(), and OnButtonKeyFrameRemove().
|
protected |
Referenced by ExportAnimationDialog(), and getPathMapping().
|
protected |
Referenced by ExportAnimationDialog(), and getPathMapping().
|
protected |
Referenced by ExportAnimationDialog(), getPathMapping(), OnFilterGridCellSelected(), and OnFilterTreeCtrlSelChanged().
|
protected |
Referenced by ExportAnimationDialog(), and getPathMapping().
|
protected |
Referenced by ExportAnimationDialog(), and getPathMapping().
|
protected |
Referenced by ExportAnimationDialog(), getPathMapping(), OnFrameViewSlider(), OnTextFrame(), and prepare().
|
protected |
Referenced by ExportAnimationDialog(), getPathMapping(), and OnImageFilePrefix().
|
protected |
Referenced by ExportAnimationDialog(), getPathMapping(), OnBtnResolution(), and setDefImSize().
|
protected |
Referenced by ExportAnimationDialog(), getPathMapping(), OnButtonWorkDir(), and OnOutputDirText().
|
protected |
Referenced by ExportAnimationDialog(), and getPathMapping().