#include <Snapper.h>
Public Member Functions |
|
Snapper () | |
~Snapper () | |
virtual CameraRef | getCamera () |
virtual ViewStateRef | getViewState () |
void | setSettings (SnapperSettings const &) |
SnapperSettings const & | getSettings () const |
void | setLayerName (int layer, const awString::IString &name) |
void | createTileSets (const int width, const int height, int layer=1, HdrFormat format=kHdrOff) |
void | clearTileSets () |
bool | snap (const int width, const int height, int drawElements=0, ColorMask colorMask=kRGBAChannels, int layer=0, bool insideFrame=false) |
bool | save (const awString::IString &filename) |
bool | copyRenderedBuffer (unsigned char *buffer, int rowPitch, bool bflip) const |
void | setSplitSize (float l, float b, float w, float h) |
void | setNumActiveViewports (int n) |
virtual void | saveViewport (const awString::IString &filename)=0 |
void | setNeedRedo () |
void | setProgress (awSupport::Progress &progress) |
void | cleanProgress () |
Protected Member Functions |
|
virtual bool | beginSnap ()=0 |
virtual bool | snapTile ()=0 |
virtual bool | endSnap ()=0 |
virtual bool | tileDone ()=0 |
virtual void | beginViewport (int index)=0 |
virtual void | endViewport ()=0 |
Static Protected Member Functions |
|
static awString::IString | getFullPath (const awString::IString &outputFile) |
static int | getFileType (const awString::IString &filename) |
static int | getDensityUnitIndex (const FileFormat format, const DensityUnit densUnit) |
Protected Attributes |
|
HdrFormat | myHdrFormat |
float | mySplitLeft |
float | mySplitBottom |
float | mySplitWidth |
float | mySplitHeight |
int | myWidth |
int | myHeight |
int | myColorMask |
int | myDrawElements |
int | myCurrentLayer |
int | myViewportCount |
bool | myIsInsideFrame |
bool | myNeedRedo |
awSupport::Progress * | myProgress |
awSupport::TileSets | myLayers |
SnapperSettings | mySettings |
Snapper | ( | ) |
~Snapper | ( | ) |
virtual CameraRef getCamera | ( | ) | [virtual] |
virtual ViewStateRef getViewState | ( | ) | [virtual] |
void setSettings | ( | SnapperSettings const & | ) |
SnapperSettings const& getSettings | ( | ) | const |
void setLayerName | ( | int | layer, |
const awString::IString & | name | ||
) |
void createTileSets | ( | const int | width, |
const int | height, | ||
int | layer = 1 , |
||
HdrFormat | format =
kHdrOff |
||
) |
void clearTileSets | ( | ) |
bool snap | ( | const int | width, |
const int | height, | ||
int | drawElements = 0 , |
||
ColorMask | colorMask =
kRGBAChannels , |
||
int | layer = 0 , |
||
bool | insideFrame =
false |
||
) |
bool save | ( | const awString::IString & | filename | ) |
bool copyRenderedBuffer | ( | unsigned char * | buffer, |
int | rowPitch, | ||
bool | bflip | ||
) | const |
void setSplitSize | ( | float | l, |
float | b, | ||
float | w, | ||
float | h | ||
) |
void setNumActiveViewports | ( | int | n | ) |
virtual void saveViewport | ( | const awString::IString & | filename | ) | [pure virtual] |
void setNeedRedo | ( | ) |
void setProgress | ( | awSupport::Progress & | progress | ) |
void cleanProgress | ( | ) |
static awString::IString getFullPath | ( | const awString::IString & | outputFile | ) | [static, protected] |
static int getFileType | ( | const awString::IString & | filename | ) | [static, protected] |
static int getDensityUnitIndex | ( | const FileFormat | format, |
const DensityUnit | densUnit | ||
) | [static, protected] |
virtual bool beginSnap | ( | ) | [protected, pure virtual] |
virtual bool snapTile | ( | ) | [protected, pure virtual] |
virtual bool endSnap | ( | ) | [protected, pure virtual] |
virtual bool tileDone | ( | ) | [protected, pure virtual] |
virtual void beginViewport | ( | int | index | ) | [protected, pure virtual] |
virtual void endViewport | ( | ) | [protected, pure virtual] |
HdrFormat
myHdrFormat [protected] |
float
mySplitLeft [protected] |
float
mySplitBottom [protected] |
float
mySplitWidth [protected] |
float
mySplitHeight [protected] |
int
myWidth [protected] |
int
myHeight [protected] |
int
myColorMask [protected] |
int
myDrawElements [protected] |
int
myCurrentLayer [protected] |
int
myViewportCount [protected] |
bool
myIsInsideFrame [protected] |
bool
myNeedRedo [protected] |
awSupport::Progress*
myProgress [protected] |
awSupport::TileSets
myLayers [protected] |
SnapperSettings
mySettings [protected] |