rasdaman complete source
Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
rviewRenderImage Class Referenceabstract

#include <rviewDModes.hh>

Inheritance diagram for rviewRenderImage:
rviewImage rviewDisplay rviewFrame rviewHeightImage rviewOSectionImage rviewVolumeImage rviewOSectionFullImage rviewOSectionPartImage

Public Member Functions

 rviewRenderImage (mdd_frame *mf, int es, unsigned int flags=0)
 
virtual ~rviewRenderImage (void)
 
virtual void label (void)
 
virtual int process (wxObject &obj, wxEvent &evt)
 
virtual int newProjection (void)
 
virtual void prepareToDie (void)
 
virtual int requestQuit (int level)
 
virtual int userEvent (const user_event &ue)
 
virtual void OnSize (int w, int h)
 
virtual void OnMenuCommand (int id)
 
virtual bool OnClose (void)
 
virtual const char * getFrameName (void) const
 
virtual rviewFrameType getFrameType (void) const
 
void closeEditor (bool newSetup)
 
void updateSettings (int setFlags)
 
void closeRendererControls (void)
 
void setAutoRotation (float rx, float ry, float rz)
 
void setCurrentView (const vertex_fp &angles, long off, double scale)
 
- Public Member Functions inherited from rviewImage
 rviewImage (mdd_frame *mf, int es, unsigned int flags=0)
 
virtual ~rviewImage (void)
 
virtual int openViewer (void)
 
virtual void processMouseEvent (wxMouseEvent &mevt)
 
- Public Member Functions inherited from rviewDisplay
 rviewDisplay (mdd_frame *mf, int es, unsigned int flags=0)
 
virtual ~rviewDisplay (void)
 
void closeViewer (void)
 
virtual int getViewerType (void) const =0
 
virtual const r_MintervalgetVirtualDomain (void) const
 
void noLongerUpdate (void)
 
int getIdentifier (void) const
 
int getDisplayCounter (void) const
 
void setQueryWindow (int qwindowID)
 
- Public Member Functions inherited from rviewFrame
 rviewFrame (wxFrame *parent, char *title, int x, int y, int w, int h)
 
virtual ~rviewFrame (void)
 
int checkobj (wxObject &obj)
 
virtual void childMouseEvent (wxWindow *child, wxMouseEvent &mevt)
 
void setParent (rviewFrame *parent)
 
void registerChild (rviewFrame *child)
 
void deregisterChild (rviewFrame *child)
 

Protected Member Functions

virtual char * initMode (void)
 
virtual char * setupEnvironment (int w, int h)=0
 
virtual void rotateObject (wxMouseEvent &mevt)
 
virtual bool doUpdate (int updateFlags)=0
 
virtual void redrawSettingsChanged (void)
 
virtual void fillBuffer (void)=0
 
virtual void fillBackgroundCore (rviewBaseType bt, double minVal)
 
virtual int configMenuInitHook (wxMenu *menu)
 
virtual int viewMenuInitHook (wxMenu *menu)
 
virtual bool canRotateObject (void) const
 
virtual void updateCurrentView (void)
 
int setupEnvBase (int w, int h, r_Ref< r_GMarray > &mdd, colourspaceMapper **csm, r_Minterval *csdom)
 
char * setupGraphEnv (void)
 
void fillBufferBackground (bool doCspace, bool &cspaceOK, r_Ref< r_GMarray > &obj, colourspaceMapper **csm, r_Minterval *csdom, rviewBaseType bt, bool fullRange, double *useMinVal=NULL)
 
void translateBufferToCspace (rviewBaseType bt, double *useMinVal=NULL, double *useMaxVal=NULL)
 
void rotateCube (int axis, float angle)
 
void getLightPos (vertex_fp *lpos)
 
virtual int saveView (FILE *fp)
 
virtual int readView (const char *key, const char *value)
 
virtual void loadViewFinished (void)
 
void matrixToAngles (vertex_fp &angles) const
 
void anglesToMatrix (const vertex_fp &angles)
 
- Protected Member Functions inherited from rviewImage
void updatePixmap (char *oldData, char *newData)
 
void configureCspace (bool state)
 
void setCspaceProjMode (bool pmode)
 
void resizeImage (void)
 
void openViewerEpilogue (rviewFrameType ft)
 
int freeDimsFromProjection (int &dim1, int &dim2, r_Point *map)
 
void ensureViewCspace (void)
 
void deleteViewCspace (void)
 
virtual void projectObjectHook (void)
 
virtual void configureMode (void)
 
virtual bool cspaceRangeHook (bool suggest)
 
virtual char * movieNewFrame (void)
 
virtual int fileMenuInitHook (wxMenu *menu)
 
virtual bool modeNeedsCspace (rviewBaseType bt) const
 
virtual bool moviePossible (void) const
 
virtual bool showScaleSlider (void) const
 
- Protected Member Functions inherited from rviewDisplay
virtual int menuBarInitHook (void)
 
void setModeDimension (int dim)
 
void setMinimumViewerSize (int w, int h)
 
const char * skipIndexMapping (const char *s)
 
int advanceProjection (int direction, int advmode=display_advmode_relative)
 
void newDBState (bool dbstate)
 
void setDisplayTitle (const char *title=NULL)
 
int doSaveView (void)
 
int doLoadView (void)
 
int parseViewFile (FILE *fp)
 

Static Protected Member Functions

static void rotateCube (int axis, float angle, vertex_fp *matrix)
 
- Static Protected Member Functions inherited from rviewDisplay
static void writeViewKey (FILE *fp, const char *key)
 
static void writeViewParam (FILE *fp, const char *key, const char *value)
 
static void writeViewParam (FILE *fp, const char *key, long value)
 
static void writeViewParam (FILE *fp, const char *key, double value)
 
static void writeViewParam (FILE *fp, const char *key, unsigned int num, const long *values)
 
static void writeViewParam (FILE *fp, const char *key, unsigned int num, const double *values)
 
static int readVector (const char *value, unsigned int num, long *values)
 
static int readVector (const char *value, unsigned int num, double *values)
 

Protected Attributes

int rendererPlayback
 
vertex_fpgeomData
 
vertex_fpgeomUse
 
vertex_fprot
 
graph_envgraphEnv
 
union {
   unsigned long   l
 
   float   f
 
   double   d
 
voxColour
 
long zoff
 
double cubeScale
 
float drx
 
float dry
 
float drz
 
rview_image_setup setup
 
rviewImageSetupsetupWindow
 
rendererControlrcontrol
 
rendererCurrentViewrcurview
 
- Protected Attributes inherited from rviewImage
wxPixmappixmap
 
pixmapCanvaspcanv
 
rviewSliderscaleSlider
 
int pixWidth
 
int pixHeight
 
int pixPitch
 
int pixPad
 
int pixDepth
 
int virtualPitch
 
char * imgData
 
double scaleValue
 
int scrollx
 
int scrolly
 
float mousex
 
float mousey
 
int mousebut
 
unsigned int freeDims
 
colourspaceMappercsmap
 
bool doValToCspace
 
bool doFullRangeCspace
 
bool doProjRangeCspace
 
bool cspaceForType
 
bool initPhaseFinished
 
r_MintervalcsInterv
 
rviewButtonplayFwd
 
rviewButtonplayBack
 
rviewButtonplayStop
 
int playDirection
 
int lastMovieMode
 
colourspace_paramscspar
 
- Protected Attributes inherited from rviewDisplay
unsigned int displayFlags
 
r_Ref< r_GMarraymddObj
 
r_Minterval interv
 
r_Point pt1
 
r_Point pt2
 
r_Point mapIndex
 
int dimMDD
 
int dimMode
 
int baseSize
 
rviewBaseType baseType
 
wxMenuBar * mBar
 
wxPanel * ctrlPanel
 
rviewTextproject
 
rviewTextadvance
 
wxMessage * typeMsg
 
rviewButtonprojBut
 
rviewButtonprojPlus
 
rviewButtonprojMinus
 
char projString [STRINGSIZE]
 
char rootTitle [STRINGSIZE]
 
int extraSpace
 
int totalCtrlHeight
 
int displayID
 
int qwindowID
 
int minViewX
 
int minViewY
 
int mbarHeight
 
bool displayOperation
 
bool objectInitializedOK
 
- Protected Attributes inherited from rviewFrame
rviewFrameMgrframes
 
rviewFrameparentFrame
 
int frameWidth
 
int frameHeight
 

Static Protected Attributes

static const char * view_ZProject
 
static const char * view_ZClip
 
static const char * view_PixThreshLow
 
static const char * view_PixThreshHigh
 
static const char * view_WeightThresh
 
static const char * view_WeightQuant
 
static const char * view_UseRGBBright
 
static const char * view_UseLighting
 
static const char * view_LightAmbient
 
static const char * view_LightGain
 
static const char * view_LightAngle
 
static const char * view_LightScint
 
static const char * view_LightDir
 
static const char * view_LightDist
 
static const char * view_KernelSize
 
static const char * view_KernelType
 
static const char * view_UseVoxColour
 
static const char * view_VoxColour
 
static const char * view_GridSize
 
static const char * view_ScaleHeight
 
static const char * view_Rotation
 
static const char * view_ZOffset
 
- Static Protected Attributes inherited from rviewImage
static const char * view_ScrollPos
 
static const char * view_UseCspace
 
static const char * view_CspaceFull
 
static const char * view_CspaceProj
 
static const char * view_CspaceMeans
 
static const char * view_CspaceSigmas
 
static const char * view_CspaceType
 
static const char * view_CspaceRange
 
static const char * view_ScaleValue
 
- Static Protected Attributes inherited from rviewDisplay
static const int fixedNumberOfMenus
 

Additional Inherited Members

- Public Types inherited from rviewDisplay
enum  display_advmode_e { display_advmode_relative, display_advmode_absolute, display_advmode_reset }
 
- Static Public Member Functions inherited from rviewImage
static int getPixmapFlags (void)
 
- Static Public Attributes inherited from rviewImage
static const int image_swidth
 
static const int image_sheight
 
static const int image_pbwidth
 
static const int image_pbheight
 
static const int image_minwidth
 
static const int image_minheight
 
static const int image_chkwidth
 
static const int image_chkheight
 
static const int image_bbwidth
 
static const int image_bbheight
 
static const int image_twidth
 
static const int image_theight
 
static const int image_bwidth
 
static const int image_bheight
 
static const int image_dragtoff
 
static const int image_dragtspace
 
static const int image_draghotzone
 
static const int image_ctrly
 
static const int image_totaly
 
- Static Public Attributes inherited from rviewDisplay
static const int display_width
 
static const int display_height
 
static const int display_cnvborder
 
static const int display_border
 
static const int display_scrstep
 
static const int display_pgstep
 
static const int display_cheight
 
static const int display_pjheight
 
static const int display_pjwidth
 
static const int display_pbwidth
 
static const int display_pbheight
 
static const int display_minwidth
 
static const int display_flag_standalone
 
static const int display_flag_update
 

Constructor & Destructor Documentation

rviewRenderImage::rviewRenderImage ( mdd_frame mf,
int  es,
unsigned int  flags = 0 
)
virtual rviewRenderImage::~rviewRenderImage ( void  )
virtual

Member Function Documentation

void rviewRenderImage::anglesToMatrix ( const vertex_fp angles)
protected
virtual bool rviewRenderImage::canRotateObject ( void  ) const
protectedvirtual

Reimplemented from rviewImage.

void rviewRenderImage::closeEditor ( bool  newSetup)
void rviewRenderImage::closeRendererControls ( void  )
virtual int rviewRenderImage::configMenuInitHook ( wxMenu *  menu)
protectedvirtual

Reimplemented from rviewImage.

virtual bool rviewRenderImage::doUpdate ( int  updateFlags)
protectedpure virtual
virtual void rviewRenderImage::fillBackgroundCore ( rviewBaseType  bt,
double  minVal 
)
protectedvirtual

Reimplemented in rviewHeightImage.

virtual void rviewRenderImage::fillBuffer ( void  )
protectedpure virtual
void rviewRenderImage::fillBufferBackground ( bool  doCspace,
bool cspaceOK,
r_Ref< r_GMarray > &  obj,
colourspaceMapper **  csm,
r_Minterval csdom,
rviewBaseType  bt,
bool  fullRange,
double *  useMinVal = NULL 
)
protected
virtual const char* rviewRenderImage::getFrameName ( void  ) const
virtual

Reimplemented from rviewImage.

Reimplemented in rviewHeightImage, rviewVolumeImage, and rviewOSectionImage.

virtual rviewFrameType rviewRenderImage::getFrameType ( void  ) const
virtual

Reimplemented from rviewImage.

Reimplemented in rviewHeightImage, rviewVolumeImage, and rviewOSectionImage.

void rviewRenderImage::getLightPos ( vertex_fp lpos)
protected
virtual char* rviewRenderImage::initMode ( void  )
protectedvirtual

Implements rviewImage.

Reimplemented in rviewHeightImage, rviewVolumeImage, and rviewOSectionImage.

virtual void rviewRenderImage::label ( void  )
virtual
virtual void rviewRenderImage::loadViewFinished ( void  )
protectedvirtual

Reimplemented from rviewImage.

Reimplemented in rviewVolumeImage, and rviewOSectionImage.

void rviewRenderImage::matrixToAngles ( vertex_fp angles) const
protected
virtual int rviewRenderImage::newProjection ( void  )
virtual

Implements rviewImage.

Reimplemented in rviewHeightImage.

virtual bool rviewRenderImage::OnClose ( void  )
virtual

Reimplemented from rviewImage.

virtual void rviewRenderImage::OnMenuCommand ( int  id)
virtual

Reimplemented from rviewImage.

Reimplemented in rviewVolumeImage.

virtual void rviewRenderImage::OnSize ( int  w,
int  h 
)
virtual

Reimplemented from rviewImage.

Reimplemented in rviewVolumeImage, rviewOSectionPartImage, and rviewOSectionImage.

virtual void rviewRenderImage::prepareToDie ( void  )
virtual

Reimplemented from rviewImage.

Reimplemented in rviewHeightImage.

virtual int rviewRenderImage::process ( wxObject &  obj,
wxEvent &  evt 
)
virtual
virtual int rviewRenderImage::readView ( const char *  key,
const char *  value 
)
protectedvirtual

Reimplemented from rviewImage.

Reimplemented in rviewVolumeImage, and rviewOSectionImage.

virtual void rviewRenderImage::redrawSettingsChanged ( void  )
protectedvirtual

Reimplemented in rviewHeightImage.

virtual int rviewRenderImage::requestQuit ( int  level)
virtual

Reimplemented from rviewImage.

Reimplemented in rviewHeightImage.

static void rviewRenderImage::rotateCube ( int  axis,
float  angle,
vertex_fp matrix 
)
staticprotected
void rviewRenderImage::rotateCube ( int  axis,
float  angle 
)
protected
virtual void rviewRenderImage::rotateObject ( wxMouseEvent &  mevt)
protectedvirtual

Reimplemented from rviewImage.

virtual int rviewRenderImage::saveView ( FILE *  fp)
protectedvirtual

Reimplemented from rviewImage.

Reimplemented in rviewVolumeImage, and rviewOSectionImage.

void rviewRenderImage::setAutoRotation ( float  rx,
float  ry,
float  rz 
)
void rviewRenderImage::setCurrentView ( const vertex_fp angles,
long  off,
double  scale 
)
int rviewRenderImage::setupEnvBase ( int  w,
int  h,
r_Ref< r_GMarray > &  mdd,
colourspaceMapper **  csm,
r_Minterval csdom 
)
protected
virtual char* rviewRenderImage::setupEnvironment ( int  w,
int  h 
)
protectedpure virtual
char* rviewRenderImage::setupGraphEnv ( void  )
protected
void rviewRenderImage::translateBufferToCspace ( rviewBaseType  bt,
double *  useMinVal = NULL,
double *  useMaxVal = NULL 
)
protected
virtual void rviewRenderImage::updateCurrentView ( void  )
protectedvirtual
void rviewRenderImage::updateSettings ( int  setFlags)
virtual int rviewRenderImage::userEvent ( const user_event ue)
virtual

Reimplemented from rviewImage.

virtual int rviewRenderImage::viewMenuInitHook ( wxMenu *  menu)
protectedvirtual

Reimplemented from rviewDisplay.

Member Data Documentation

double rviewRenderImage::cubeScale
protected
double rviewRenderImage::d
float rviewRenderImage::drx
protected
float rviewRenderImage::dry
protected
float rviewRenderImage::drz
protected
float rviewRenderImage::f
vertex_fp* rviewRenderImage::geomData
protected
vertex_fp * rviewRenderImage::geomUse
protected
graph_env* rviewRenderImage::graphEnv
protected
unsigned long rviewRenderImage::l
rendererControl* rviewRenderImage::rcontrol
protected
rendererCurrentView* rviewRenderImage::rcurview
protected
int rviewRenderImage::rendererPlayback
protected
vertex_fp* rviewRenderImage::rot
protected
rview_image_setup rviewRenderImage::setup
protected
rviewImageSetup* rviewRenderImage::setupWindow
protected
const char* rviewRenderImage::view_GridSize
staticprotected
const char* rviewRenderImage::view_KernelSize
staticprotected
const char* rviewRenderImage::view_KernelType
staticprotected
const char* rviewRenderImage::view_LightAmbient
staticprotected
const char* rviewRenderImage::view_LightAngle
staticprotected
const char* rviewRenderImage::view_LightDir
staticprotected
const char* rviewRenderImage::view_LightDist
staticprotected
const char* rviewRenderImage::view_LightGain
staticprotected
const char* rviewRenderImage::view_LightScint
staticprotected
const char* rviewRenderImage::view_PixThreshHigh
staticprotected
const char* rviewRenderImage::view_PixThreshLow
staticprotected
const char* rviewRenderImage::view_Rotation
staticprotected
const char* rviewRenderImage::view_ScaleHeight
staticprotected
const char* rviewRenderImage::view_UseLighting
staticprotected
const char* rviewRenderImage::view_UseRGBBright
staticprotected
const char* rviewRenderImage::view_UseVoxColour
staticprotected
const char* rviewRenderImage::view_VoxColour
staticprotected
const char* rviewRenderImage::view_WeightQuant
staticprotected
const char* rviewRenderImage::view_WeightThresh
staticprotected
const char* rviewRenderImage::view_ZClip
staticprotected
const char* rviewRenderImage::view_ZOffset
staticprotected
const char* rviewRenderImage::view_ZProject
staticprotected
union { ... } rviewRenderImage::voxColour
long rviewRenderImage::zoff
protected

The documentation for this class was generated from the following file: