7 #ifndef __graphviz_GraphDot_h__ 8 #define __graphviz_GraphDot_h__ 26 void initialize(
void);
29 virtual I32 interpretSelect(
String a_source);
38 if(m_spDelegate.isValid())
40 m_spDelegate->setFormat(format);
44 virtual ImageI::Format
format(
void)
const 45 {
return m_spDelegate.isValid()?
46 m_spDelegate->format(): ImageI::e_none; }
48 virtual void resize(U32 width,U32 height,U32 depth)
50 if(m_spDelegate.isValid())
52 m_spDelegate->resize(width,height,depth);
57 U32 width,U32 height,U32 depth,
void*
data)
59 if(m_spDelegate.isValid())
61 m_spDelegate->replaceRegion(x,y,z,
62 width,height,depth,data);
68 {
return m_spDelegate.isValid()?
69 m_spDelegate->width(): 0; }
71 {
return m_spDelegate.isValid()?
72 m_spDelegate->height(): 0; }
74 {
return m_spDelegate.isValid()?
75 m_spDelegate->depth(): 0; }
76 virtual void*
raw(
void)
const 77 {
return m_spDelegate.isValid()?
78 m_spDelegate->raw(): NULL; }
80 virtual U32 regionCount(
void)
const;
81 virtual String regionName(U32 a_regionIndex)
const;
83 virtual String pickRegion(I32 a_x,I32 a_y)
const;
87 virtual void render(
String a_format);
virtual ImageI::Format format(void) const
return the format for the selected image
Definition: GraphDot.h:44
kernel
Definition: namespace.dox:3
Per-class participation in the Initialized <> mechanism.
Definition: Initialized.h:117
virtual void resize(U32 width, U32 height, U32 depth)
change the dimensions of the selcted image
Definition: GraphDot.h:48
virtual void setFormat(ImageI::Format format)
choose a format for the selected image
Definition: GraphDot.h:36
virtual I32 selected(void) const
return the selected image ID
Definition: GraphDot.h:33
virtual U32 depth(void) const
return the Z dimension of the image
Definition: GraphDot.h:73
Converter from DAGNode to dot format.
Definition: GraphDot.h:19
virtual void replaceRegion(U32 x, U32 y, U32 z, U32 width, U32 height, U32 depth, void *data)
replace data in part of the image
Definition: GraphDot.h:56
General functionality for image support.
Definition: ImageCommon.h:20
Automatically reference-counted string container.
Definition: String.h:128
virtual void unload(I32 id)
remove an image from memory
Definition: GraphDot.h:34
virtual U32 height(void) const
return the Y dimension of the image
Definition: GraphDot.h:70
virtual U32 width(void) const
return the X dimension of the image
Definition: GraphDot.h:67
virtual void * raw(void) const
return the raw byte buffer of the image
Definition: GraphDot.h:76
virtual BWORD save(String filename)
save the selected image to file
Definition: GraphDot.h:31
virtual void select(I32 id)
select an image for further access
Definition: GraphDot.h:32