#include <iRenderPresets.h>
Public Types |
|
enum | RendererSpecifier { kProduction = 0, kMaterial, kActiveShade } |
enum | NodeRefAction { kUnspecified = -1, kLoadAll = 0, kLoadNonNodeRefMakers = 1, kLoadNone = 2 } |
Public Member Functions |
|
virtual | ~IRenderPresetsManager () |
Destructor. |
|
virtual int | Save (RendererSpecifier rendSpecifier)=0 |
Save selected categories of render presets
to the file. |
|
virtual int | Save (RendererSpecifier rendSpecifier, const MCHAR *fileName)=0 |
Save selected categories of render presets
to the file. |
|
virtual int | Save (RendererSpecifier rendSpecifier, const MCHAR *fileName, BitArray saveCategories)=0 |
Save selected categories of render presets
to the file. |
|
virtual int | Load (RendererSpecifier rendSpecifier)=0 |
Load selected categories of render presets
from the file. |
|
virtual int | Load (RendererSpecifier rendSpecifier, const MCHAR *fileName)=0 |
Load selected categories of render presets
from the file. |
|
virtual int | Load (RendererSpecifier rendSpecifier, const MCHAR *fileName, BitArray loadCategories, NodeRefAction nodeRefAction=kUnspecified)=0 |
Load selected categories of render presets
from the file. |
|
virtual int | IsFileCompatible (RendererSpecifier rendSpecifier, const MCHAR *fileName)=0 |
Check to see if file is compatable with
current renderer. |
|
virtual MCHAR * | MapIndexToCategory (const MCHAR *fileName, int catIndex)=0 |
Retrieve a render presets name based on its
ID. |
|
virtual int | MapCategoryToIndex (const MCHAR *fileName, const MCHAR *category)=0 |
retrieve a render presets ID based on its
name |
|
virtual MCHAR * | MapIndexToCategory (RendererSpecifier rendSpecifier, int catIndex)=0 |
retrieve a render presets name based on its
ID for the current renderers |
|
virtual int | MapCategoryToIndex (RendererSpecifier rendSpecifier, const MCHAR *category)=0 |
retrieve a render presets ID based on its
name for the current renderers |
|
virtual BitArray | LoadCategories (const MCHAR *fileName)=0 |
return a list of all preset category ID's
saved in a given preset file. |
|
virtual Tab< MCHAR * > | LoadCategoryNames (const MCHAR *fileName)=0 |
return a list of all preset category names
saved in a given preset file. |
|
virtual BitArray | SaveCategories (RendererSpecifier rendSpecifier)=0 |
return a list of all preset category ID's
that are meaningful to the specified renderer. |
|
virtual Tab< MCHAR * > | SaveCategoryNames (RendererSpecifier rendSpecifier)=0 |
return a list of all preset category names
that are meaningful to the specified renderer. |
|
virtual RenderPresetsContext * | GetContext ()=0 |
Retrieve the current RenderPresetContext.
|
enum RendererSpecifier |
{ kProduction = 0, kMaterial, kActiveShade };
enum NodeRefAction |
{ kUnspecified = -1, kLoadAll = 0, kLoadNonNodeRefMakers = 1, kLoadNone = 2, };
virtual ~IRenderPresetsManager | ( | ) | [inline, virtual] |
Destructor.
{;}
virtual int Save | ( | RendererSpecifier | rendSpecifier | ) | [pure virtual] |
Save selected categories of render presets to the file.
rendSpecifier | Which renderer to save the presets of |
virtual int Save | ( | RendererSpecifier | rendSpecifier, |
const MCHAR * | fileName | ||
) | [pure virtual] |
Save selected categories of render presets to the file.
rendSpecifier | Which renderer to save the presets of |
fileName | The file to save the user-selected presets to. |
virtual int Save | ( | RendererSpecifier | rendSpecifier, |
const MCHAR * | fileName, | ||
BitArray | saveCategories | ||
) | [pure virtual] |
Save selected categories of render presets to the file.
rendSpecifier | Which renderer to save the presets of |
fileName | The file to save the user-selected presets to. |
saveCategories | A BitArray specifying the presets categories to be saved. |
virtual int Load | ( | RendererSpecifier | rendSpecifier | ) | [pure virtual] |
Load selected categories of render presets from the file.
rendSpecifier | Which renderer to load the presets for |
virtual int Load | ( | RendererSpecifier | rendSpecifier, |
const MCHAR * | fileName | ||
) | [pure virtual] |
Load selected categories of render presets from the file.
rendSpecifier | Which renderer to load the presets for |
fileName | A path to file to load the render presets from |
virtual int Load | ( | RendererSpecifier | rendSpecifier, |
const MCHAR * | fileName, | ||
BitArray | loadCategories, | ||
NodeRefAction | nodeRefAction =
kUnspecified |
||
) | [pure virtual] |
Load selected categories of render presets from the file.
rendSpecifier | Which renderer to load the presets for |
fileName | A path to file to load the render presets from |
loadCategories | The preset categories to for the specified renderer |
nodeRefAction | One of the NodeRefAction enum values |
virtual int IsFileCompatible | ( | RendererSpecifier | rendSpecifier, |
const MCHAR * | fileName | ||
) | [pure virtual] |
Check to see if file is compatable with current renderer.
rendSpecifier | The category to check compatability for |
fileName | The saved render preset file |
virtual MCHAR* MapIndexToCategory | ( | const MCHAR * | fileName, |
int | catIndex | ||
) | [pure virtual] |
Retrieve a render presets name based on its ID.
fileName | The file containing the preset we are looking for the name to |
catIndex | The ID of the category saved in fileName to retrieve the name of |
virtual int MapCategoryToIndex | ( | const MCHAR * | fileName, |
const MCHAR * | category | ||
) | [pure virtual] |
retrieve a render presets ID based on its name
fileName | The file containing the preset we are looking for the ID for |
category | The name of the category saved in fileName to retrieve the ID of |
virtual MCHAR* MapIndexToCategory | ( | RendererSpecifier | rendSpecifier, |
int | catIndex | ||
) | [pure virtual] |
retrieve a render presets name based on its ID for the current renderers
rendSpecifier | Which current renderer to query for the preset category name. |
catIndex | The ID of the render preset to retrieve the name of |
virtual int MapCategoryToIndex | ( | RendererSpecifier | rendSpecifier, |
const MCHAR * | category | ||
) | [pure virtual] |
retrieve a render presets ID based on its name for the current renderers
rendSpecifier | Which current renderer to query for the preset category ID. |
catIndex | The name of the category to retrieve the ID of |
virtual BitArray LoadCategories | ( | const MCHAR * | fileName | ) | [pure virtual] |
return a list of all preset category ID's saved in a given preset file.
fileName | The file to query for saved preset categories |
virtual Tab<MCHAR *> LoadCategoryNames | ( | const MCHAR * | fileName | ) | [pure virtual] |
return a list of all preset category names saved in a given preset file.
fileName | The file to query for saved preset categories |
virtual BitArray SaveCategories | ( | RendererSpecifier | rendSpecifier | ) | [pure virtual] |
return a list of all preset category ID's that are meaningful to the specified renderer.
rendSpecifier | Which current renderer to query for meaningful categories |
virtual Tab<MCHAR *> SaveCategoryNames | ( | RendererSpecifier | rendSpecifier | ) | [pure virtual] |
return a list of all preset category names that are meaningful to the specified renderer.
rendSpecifier | Which current renderer to query for meaningful categories |
virtual RenderPresetsContext* GetContext | ( | ) | [pure virtual] |
Retrieve the current RenderPresetContext.