DATAKIT API  V2025.4
Dtk_Preview Class Reference

This is the Dtk_Preview class. More...

+ Inheritance diagram for Dtk_Preview:

Public Member Functions

int DtkDynamicType (const int &inId)
 
virtual void dump (FILE *file=stdout)
 
virtual Dtk_Size_t GetSize () const
 
char * GetStream ()
 
Dtk_Int32 GetStreamSize ()
 
preview_type_detk GetType ()
 
void SetType (preview_type_detk inPreviewType)
 

Static Public Member Functions

static Dtk_PreviewPtr Create (const char *inStream, const Dtk_Int32 inSizeStream)
 Calls full featured constructor to allocate a new object. More...
 
static Dtk_PreviewPtr Create (const Dtk_Preview &in)
 Calls copy constructor to allocate a new object. More...
 
static Dtk_PreviewDtkDynamicCast (Dtk_Object *s)
 

Protected Types

enum  { _typeID = DTK_TYPE_OBJECT }
 

Protected Member Functions

void _Copy (const Dtk_Preview &s)
 
void _Init ()
 
void _Reset ()
 
 Dtk_Preview ()
 
 Dtk_Preview (const char *inStream, const Dtk_Int32 inSizeStream)
 
virtual ~Dtk_Preview ()
 

Protected Attributes

Dtk_Handle * _Private
 
unsigned long count_
 

Detailed Description

This is the Dtk_Preview class.

A Dtk_Preview contains Stream representing picture data This class lets you use Dtk_Preview.

See also
Use Dtk_PreviewPtr class to handle it.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
protectedinherited
Enumerator
_typeID 

Constructor & Destructor Documentation

◆ Dtk_Preview() [1/2]

Dtk_Preview::Dtk_Preview ( )
protected

◆ Dtk_Preview() [2/2]

Dtk_Preview::Dtk_Preview ( const char *  inStream,
const Dtk_Int32  inSizeStream 
)
protected

◆ ~Dtk_Preview()

virtual Dtk_Preview::~Dtk_Preview ( )
protectedvirtual

Member Function Documentation

◆ _Copy()

void Dtk_Preview::_Copy ( const Dtk_Preview s)
protected

◆ _Init()

void Dtk_Preview::_Init ( )
protected

◆ _Reset()

void Dtk_Preview::_Reset ( )
protected

◆ Create() [1/2]

static Dtk_PreviewPtr Dtk_Preview::Create ( const char *  inStream,
const Dtk_Int32  inSizeStream 
)
static

Calls full featured constructor to allocate a new object.

◆ Create() [2/2]

static Dtk_PreviewPtr Dtk_Preview::Create ( const Dtk_Preview in)
static

Calls copy constructor to allocate a new object.

Parameters
inObject to copy from.

◆ DtkDynamicCast()

static Dtk_Preview* Dtk_Preview::DtkDynamicCast ( Dtk_Object s)
static

◆ DtkDynamicType()

int Dtk_Preview::DtkDynamicType ( const int &  inId)
virtual

Implements Dtk_Object.

◆ dump()

virtual void Dtk_Object::dump ( FILE *  file = stdout)
virtualinherited

◆ GetSize()

◆ GetStream()

char* Dtk_Preview::GetStream ( )

◆ GetStreamSize()

Dtk_Int32 Dtk_Preview::GetStreamSize ( )

◆ GetType()

preview_type_detk Dtk_Preview::GetType ( )

◆ SetType()

void Dtk_Preview::SetType ( preview_type_detk  inPreviewType)

Field Documentation

◆ _Private

Dtk_Handle* Dtk_Preview::_Private
protected

◆ count_

unsigned long Dtk_Object::count_
protectedinherited