Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

vuSpecPalette Class Reference

A graphical interface for designing a spectral palette. More...

#include <vuSpecPalette.h>

Inheritance diagram for vuSpecPalette:

Inheritance graph
[legend]
Collaboration diagram for vuSpecPalette:

Collaboration graph
[legend]
List of all members.

Public Types

enum  {
  idCREATESP, idLOADPAL, idSAVEPAL, idLOADSP,
  idSAVESP, idRED_SLIDER, idGREEN_SLIDER, idBLUE_SLIDER,
  idWEIGHT_SLIDER, idDCDES, idDCGET, idDCGETALL,
  idDCFC, idFCUSEB, idFCUB, idFCLB,
  idSPNAME, idSPDES, idSPUSEB, idSPUB,
  idSPLB, idADDREF, idADDLIG, idWSMOOTH,
  idWERROR, idUSEV7, idMUL, idDIV,
  idSETPLANCK, idNORMNORM, idNORMLUM, idLAST
}

Public Member Functions

 vuSpecPalette (wxWindow *parent, SPalette &pal)
 Constructor for the dialog window.
 ~vuSpecPalette ()
 Destructor.
const SPalettegetSPalette () const
 returns a the spectral palette used by this design dialog
void selectSpec (int rid, int lid)
 select a spectrum if indices are too high, new entries will be created
void UpdateWidgets ()
 Updates the values in the widgets.
void FitAllDesignColours ()
 Fits all desired colours to the actual combination colours.

Protected Types

enum  TYPE_COLOUR_CLICK { CC_GET, CC_PUT, CC_TOGGLE_DESIGN }

Protected Member Functions

void OnColourClick (int refl, int light, TYPE_COLOUR_CLICK what)
 called if a colours is clicked
void CalculateMeasurements ()
 sets up the measurement variables
void CreateWidgets ()
 created widgets
void ClearAndHighlight (wxDC &dc)
 clears background and paints the highlight
void PaintColours (wxDC &dc)
 paints the colour table
void PaintColour (wxDC &dc)
 paints the selected colour
void PaintSpectrum (wxDC &dc)
 paints the spectrum
void OnMouseEvent (wxMouseEvent &event)
 mouse handler
void OnPaint (wxPaintEvent &event)
 customized handle for paint events
void OnOK (wxCommandEvent &ev)
 Sets the proper return codes for the ok button.
void OnLoadPal (wxCommandEvent &ev)
 Loads a transfer function.
void OnSavePal (wxCommandEvent &ev)
 Saves a transfer function.
void OnLoadSP (wxCommandEvent &ev)
 Loads a spectrum (reflectance or light).
void OnSaveSP (wxCommandEvent &ev)
 Saves a spectrum (reflectance or light).
void OnMultiplyScalar (wxCommandEvent &ev)
 Multiply by value found in m_SScale.
void OnDivideScalar (wxCommandEvent &ev)
 Divide by value found in m_SScale.
void OnNormVal (wxCommandEvent &ev)
 Copying the value to m_SScale if Enter is pressed.
void OnAddReflectance (wxCommandEvent &ev)
 Adds a (white) reflectance.
void OnAddLight (wxCommandEvent &ev)
 Adds a (white) light.
void OnCreatePlanckian (wxCommandEvent &ev)
 Set the currently selected light to be a Planckian black body radiator.
bool validSpecSelected ()
 Is a valid spectrum selected?
void OnCBSPDesign (void)
 event handler
void OnSPUpperBound (void)
 event handler
void OnSPLowerBound (void)
 event handler
void OnSPName (void)
 event handler
void OnCBSPUseB (void)
 event handler
void OnCBDCDesign (void)
 event handler
void OnGetDCColour (void)
 get design colour from actual light/refl combination colour
void OnGetAllDCColours ()
 fit all design colours to the actual combination colours
void OnChangeDCRGBW (void)
 gets called when the design colour - RGBW changes
void OnDCFC (void)
 event handler
void OnCBFCUseB (void)
 event handlercatscam
void OnFCUpperBound (void)
 event handler
void OnFCLowerBound (void)
 event handler
void OnSmoothW (void)
 event handler
void OnErrorW (void)
 event handler
void OnCBUseV7 (void)
 event handler
void OnCreateSpectrum ()
void OnCompSlider (wxScrollEvent &event)
 event handler for sliders
bool TransferDataToWindow ()
 Part of the wxWindows architecture -- there is no data to transfer.
bool TransferDataFromWindow ()
 Part of the wxWindows architecture -- there is no data to transfer.
dword getNLights ()
dword getNRefls ()

Protected Attributes

SPalettem_Palette
 The palette designed by this dialog.
bool m_DCSelected
 Is a design colour selected?
int m_SelDesColourR
 selected design colour (reflectance (y) and light (x))
int m_SelDesColourL
 selected design colour (reflectance (y) and light (x))
int m_SelRefl
 selected reflectance
int m_SelLight
 selected light
wxRect m_PalRect
 Area reserved for grids of colours.
wxPoint m_ColourSize
 Size of each colour rectangle.
wxPoint m_Border
 border around palette
int m_GridSpacing
 Grid spacing (between rectangles).
int m_SectionSpacing
 Section spacing (between left and right halves of dialog box).
wxSlider * m_CompSlider [4]
 sliders (rgbw)
wxCheckBox * m_DC_design
 checkboxes
wxCheckBox * m_FC_useBounds
 checkboxes
wxCheckBox * m_SP_useBounds
 checkboxes
wxCheckBox * m_SP_design
 checkboxes
wxCheckBox * m_useV7
 checkboxes
wxTextCtrl * m_FC_upperBound
 text controls
wxTextCtrl * m_FC_lowerBound
 text controls
wxTextCtrl * m_SP_upperBound
 text controls
wxTextCtrl * m_SP_lowerBound
 text controls
wxTextCtrl * m_SP_name
 text controls
wxTextCtrl * m_SmoothW
 text controls
wxTextCtrl * m_ErrorW
 text controls
wxTextCtrl * m_SScale
 text controls
wxTextCtrl * m_SP_Y
 text controls
wxTextCtrl * m_SP_Norm
 text controls
wxTextCtrl * m_PlanckT
 text controls
wxListBox * m_DC_FreeCol
 list box
wxSizer * m_DiagSpacer
 Spaceholder for self drawn elements.
wxSizer * m_DColSpacer
 Spaceholder for self drawn elements.
wxSizer * m_PalSpacer
 Spaceholder for self drawn elements.
wxRect m_DiagRect
 Contains position and size of drawing area after layout.
wxRect m_DColRect
 Contains position and size of drawing area after layout.
wxSizer * m_TopSizer
 root sizer, needed for redesign

Detailed Description

A graphical interface for designing a spectral palette.

Definition at line 18 of file vuSpecPalette.h.


Member Enumeration Documentation

anonymous enum
 

Enumeration values:
idCREATESP 
idLOADPAL 
idSAVEPAL 
idLOADSP 
idSAVESP 
idRED_SLIDER 
idGREEN_SLIDER 
idBLUE_SLIDER 
idWEIGHT_SLIDER 
idDCDES 
idDCGET 
idDCGETALL 
idDCFC 
idFCUSEB 
idFCUB 
idFCLB 
idSPNAME 
idSPDES 
idSPUSEB 
idSPUB 
idSPLB 
idADDREF 
idADDLIG 
idWSMOOTH 
idWERROR 
idUSEV7 
idMUL 
idDIV 
idSETPLANCK 
idNORMNORM 
idNORMLUM 
idLAST 

Definition at line 22 of file vuSpecPalette.h.

enum vuSpecPalette::TYPE_COLOUR_CLICK [protected]
 

Enumeration values:
CC_GET 
CC_PUT 
CC_TOGGLE_DESIGN 

Definition at line 92 of file vuSpecPalette.h.

Referenced by OnMouseEvent().


Constructor & Destructor Documentation

vuSpecPalette::vuSpecPalette wxWindow *  parent,
SPalette pal
 

Constructor for the dialog window.

This creates the dialog window and it's controls, but doesn't show it. Call the standard ShowModal() method to display it.

Parameters:
parent The parent window showing the dialog.
pal the palette to be designed by this dialog

Definition at line 65 of file vuSpecPalette.cpp.

References CalculateMeasurements(), CreateWidgets(), m_SelDesColourL, m_SelDesColourR, m_SelLight, and m_SelRefl.

Here is the call graph for this function:

vuSpecPalette::~vuSpecPalette  ) 
 

Destructor.

Definition at line 80 of file vuSpecPalette.cpp.


Member Function Documentation

void vuSpecPalette::CalculateMeasurements  )  [protected]
 

sets up the measurement variables

Definition at line 227 of file vuSpecPalette.cpp.

References getNLights(), getNRefls(), m_Border, m_ColourSize, m_DColRect, m_DiagRect, m_GridSpacing, m_PalRect, and m_SectionSpacing.

Referenced by UpdateWidgets(), and vuSpecPalette().

Here is the call graph for this function:

void vuSpecPalette::ClearAndHighlight wxDC &  dc  )  [protected]
 

clears background and paints the highlight

Definition at line 835 of file vuSpecPalette.cpp.

References dc, getNLights(), getNRefls(), m_ColourSize, m_GridSpacing, m_PalRect, m_SelDesColourL, m_SelDesColourR, m_SelLight, and m_SelRefl.

Referenced by PaintColours().

Here is the call graph for this function:

void vuSpecPalette::CreateWidgets  )  [protected]
 

created widgets

Definition at line 252 of file vuSpecPalette.cpp.

References idADDLIG, idADDREF, idBLUE_SLIDER, idCREATESP, idDCDES, idDCFC, idDCGET, idDCGETALL, idDIV, idFCLB, idFCUB, idFCUSEB, idGREEN_SLIDER, idLOADPAL, idLOADSP, idMUL, idNORMLUM, idNORMNORM, idRED_SLIDER, idSAVEPAL, idSAVESP, idSETPLANCK, idSPDES, idSPLB, idSPNAME, idSPUB, idSPUSEB, idUSEV7, idWEIGHT_SLIDER, idWERROR, idWSMOOTH, m_CompSlider, m_DC_design, m_DC_FreeCol, m_DColRect, m_DColSpacer, m_DiagSpacer, m_ErrorW, m_FC_lowerBound, m_FC_upperBound, m_FC_useBounds, m_Palette, m_PalSpacer, m_PlanckT, m_SmoothW, m_SP_design, m_SP_lowerBound, m_SP_name, m_SP_Norm, m_SP_upperBound, m_SP_useBounds, m_SP_Y, m_SScale, m_TopSizer, m_useV7, NULL, size, SP_BLUE, SP_GREEN, SP_RED, SP_WEIGHT, UpdateWidgets(), and SPalette::useV7().

Referenced by vuSpecPalette().

Here is the call graph for this function:

void vuSpecPalette::FitAllDesignColours  )  [inline]
 

Fits all desired colours to the actual combination colours.

Definition at line 82 of file vuSpecPalette.h.

References OnGetAllDCColours().

Referenced by SPaled::OnInit().

Here is the call graph for this function:

dword vuSpecPalette::getNLights  )  [inline, protected]
 

Definition at line 338 of file vuSpecPalette.h.

References dword, SPalette::getNLights(), and m_Palette.

Referenced by CalculateMeasurements(), ClearAndHighlight(), OnGetAllDCColours(), OnLoadPal(), OnMouseEvent(), PaintColours(), selectSpec(), UpdateWidgets(), and validSpecSelected().

Here is the call graph for this function:

dword vuSpecPalette::getNRefls  )  [inline, protected]
 

Definition at line 339 of file vuSpecPalette.h.

References dword, SPalette::getNRefls(), and m_Palette.

Referenced by CalculateMeasurements(), ClearAndHighlight(), OnGetAllDCColours(), OnLoadPal(), OnMouseEvent(), PaintColours(), selectSpec(), UpdateWidgets(), and validSpecSelected().

Here is the call graph for this function:

const SPalette & vuSpecPalette::getSPalette  )  const
 

returns a the spectral palette used by this design dialog

Definition at line 218 of file vuSpecPalette.cpp.

void vuSpecPalette::OnAddLight wxCommandEvent &  ev  )  [inline, protected]
 

Adds a (white) light.

Definition at line 150 of file vuSpecPalette.h.

References SPalette::addLight(), m_Palette, and UpdateWidgets().

Here is the call graph for this function:

void vuSpecPalette::OnAddReflectance wxCommandEvent &  ev  )  [inline, protected]
 

Adds a (white) reflectance.

Definition at line 145 of file vuSpecPalette.h.

References SPalette::addReflectance(), m_Palette, and UpdateWidgets().

Here is the call graph for this function:

void vuSpecPalette::OnCBDCDesign void   )  [inline, protected]
 

event handler

Definition at line 221 of file vuSpecPalette.h.

References SPalette::getDesignState(), m_DC_design, m_Palette, m_SelDesColourL, and m_SelDesColourR.

Referenced by OnColourClick().

Here is the call graph for this function:

void vuSpecPalette::OnCBFCUseB void   )  [protected]
 

event handlercatscam

Definition at line 583 of file vuSpecPalette.cpp.

References SPalette::getFreeColBoundState(), and SPalette::getFreeColourID().

Referenced by OnGetAllDCColours().

Here is the call graph for this function:

void vuSpecPalette::OnCBSPDesign void   )  [inline, protected]
 

event handler

Definition at line 165 of file vuSpecPalette.h.

References SPalette::getSpecDesignState(), m_Palette, m_SelLight, m_SelRefl, m_SP_design, and validSpecSelected().

Referenced by OnColourClick().

Here is the call graph for this function:

void vuSpecPalette::OnCBSPUseB void   )  [inline, protected]
 

event handler

Definition at line 210 of file vuSpecPalette.h.

References m_Palette, m_SelLight, m_SelRefl, m_SP_useBounds, SPalette::useSpecBounds(), and validSpecSelected().

Referenced by OnColourClick().

Here is the call graph for this function:

void vuSpecPalette::OnCBUseV7 void   )  [inline, protected]
 

event handler

Definition at line 309 of file vuSpecPalette.h.

References m_Palette, m_useV7, and SPalette::useV7().

Here is the call graph for this function:

void vuSpecPalette::OnChangeDCRGBW void   )  [protected]
 

gets called when the design colour - RGBW changes

Definition at line 629 of file vuSpecPalette.cpp.

Referenced by OnColourClick(), and OnGetAllDCColours().

void vuSpecPalette::OnColourClick int  refl,
int  light,
TYPE_COLOUR_CLICK  what
[protected]
 

called if a colours is clicked

Sets or gets values from palette entry. If refl or light is -1 then the click refers to a spectrum (accordingly, light or reflectance). If get is true the values will be loaded from entry.

Definition at line 705 of file vuSpecPalette.cpp.

References byte, CC_GET, CC_PUT, CC_TOGGLE_DESIGN, dc, SPalette::getDesignState(), SPalette::getFreeColourID(), SPalette::getSpec(), SPalette::getSpecLB(), SPalette::getSpecUB(), m_CompSlider, m_DC_design, m_DC_FreeCol, m_Palette, m_SelDesColourL, m_SelDesColourR, m_SelLight, m_SelRefl, m_SP_design, m_SP_lowerBound, m_SP_name, m_SP_Norm, m_SP_upperBound, m_SP_useBounds, m_SP_Y, OnCBDCDesign(), OnCBSPDesign(), OnCBSPUseB(), OnChangeDCRGBW(), OnDCFC(), OnSPLowerBound(), OnSPName(), OnSPUpperBound(), PaintColour(), PaintColours(), PaintSpectrum(), and validSpecSelected().

Referenced by OnCreatePlanckian(), OnDivideScalar(), OnGetAllDCColours(), OnGetDCColour(), OnMouseEvent(), OnMultiplyScalar(), selectSpec(), and UpdateWidgets().

Here is the call graph for this function:

void vuSpecPalette::OnCompSlider wxScrollEvent &  event  )  [protected]
 

event handler for sliders

Definition at line 645 of file vuSpecPalette.cpp.

References dc.

Referenced by OnCreateSpectrum().

void vuSpecPalette::OnCreatePlanckian wxCommandEvent &  ev  )  [protected]
 

Set the currently selected light to be a Planckian black body radiator.

Opens a sub dialog.

Definition at line 661 of file vuSpecPalette.cpp.

References CC_GET, SPalette::getSpec(), m_Palette, m_PlanckT, m_SelLight, m_SelRefl, OnColourClick(), vuColour31a::planckian(), and validSpecSelected().

Here is the call graph for this function:

void vuSpecPalette::OnCreateSpectrum  )  [inline, protected]
 

Definition at line 317 of file vuSpecPalette.h.

References SPalette::createSpectrum(), m_Palette, OnCompSlider(), and UpdateWidgets().

Here is the call graph for this function:

void vuSpecPalette::OnDCFC void   )  [protected]
 

event handler

Definition at line 557 of file vuSpecPalette.cpp.

References SPalette::attachFreeColour(), SPalette::getFreeColBoundState(), m_DC_FreeCol, m_FC_lowerBound, m_FC_upperBound, m_FC_useBounds, m_Palette, m_SelDesColourL, and m_SelDesColourR.

Referenced by OnColourClick(), and OnGetAllDCColours().

Here is the call graph for this function:

void vuSpecPalette::OnDivideScalar wxCommandEvent &  ev  )  [protected]
 

Divide by value found in m_SScale.

Definition at line 195 of file vuSpecPalette.cpp.

References CC_GET, SPalette::getSpec(), m_Palette, m_SelLight, m_SelRefl, m_SScale, OnColourClick(), and validSpecSelected().

Referenced by OnNormVal().

Here is the call graph for this function:

void vuSpecPalette::OnErrorW void   )  [inline, protected]
 

event handler

Definition at line 299 of file vuSpecPalette.h.

References m_ErrorW, m_Palette, and SPalette::setErrorMinWeight().

Here is the call graph for this function:

void vuSpecPalette::OnFCLowerBound void   )  [protected]
 

event handler

Definition at line 596 of file vuSpecPalette.cpp.

Referenced by OnGetAllDCColours().

void vuSpecPalette::OnFCUpperBound void   )  [protected]
 

event handler

Definition at line 612 of file vuSpecPalette.cpp.

Referenced by OnGetAllDCColours().

void vuSpecPalette::OnGetAllDCColours  )  [inline, protected]
 

fit all design colours to the actual combination colours

Definition at line 243 of file vuSpecPalette.h.

References CC_GET, SPalette::getDesignRGBW(), getNLights(), getNRefls(), SPalette::getRLColour(), m_Palette, m_SelDesColourL, m_SelDesColourR, m_useV7, OnCBFCUseB(), OnChangeDCRGBW(), OnColourClick(), OnDCFC(), OnFCLowerBound(), and OnFCUpperBound().

Referenced by FitAllDesignColours().

Here is the call graph for this function:

void vuSpecPalette::OnGetDCColour void   )  [inline, protected]
 

get design colour from actual light/refl combination colour

Definition at line 231 of file vuSpecPalette.h.

References CC_GET, SPalette::getDesignRGBW(), SPalette::getRLColour(), m_Palette, m_SelDesColourL, m_SelDesColourR, m_useV7, and OnColourClick().

Here is the call graph for this function:

void vuSpecPalette::OnLoadPal wxCommandEvent &  ev  )  [protected]
 

Loads a transfer function.

Definition at line 97 of file vuSpecPalette.cpp.

References SPalette::addLight(), SPalette::addReflectance(), getNLights(), getNRefls(), SPalette::load(), m_Palette, m_SelLight, m_SelRefl, and UpdateWidgets().

Here is the call graph for this function:

void vuSpecPalette::OnLoadSP wxCommandEvent &  ev  )  [protected]
 

Loads a spectrum (reflectance or light).

Definition at line 144 of file vuSpecPalette.cpp.

References SPalette::loadSpectrum(), m_Palette, m_SelLight, m_SelRefl, UpdateWidgets(), and validSpecSelected().

Here is the call graph for this function:

void vuSpecPalette::OnMouseEvent wxMouseEvent &  event  )  [protected]
 

mouse handler

Definition at line 675 of file vuSpecPalette.cpp.

References CC_GET, CC_TOGGLE_DESIGN, getNLights(), getNRefls(), m_ColourSize, m_PalRect, OnColourClick(), and TYPE_COLOUR_CLICK.

Here is the call graph for this function:

void vuSpecPalette::OnMultiplyScalar wxCommandEvent &  ev  )  [protected]
 

Multiply by value found in m_SScale.

Definition at line 184 of file vuSpecPalette.cpp.

References CC_GET, SPalette::getSpec(), m_Palette, m_SelLight, m_SelRefl, m_SScale, OnColourClick(), and validSpecSelected().

Here is the call graph for this function:

void vuSpecPalette::OnNormVal wxCommandEvent &  ev  )  [inline, protected]
 

Copying the value to m_SScale if Enter is pressed.

Works for both m_SP_Y and m_SP_Norm.

Definition at line 133 of file vuSpecPalette.h.

References idNORMLUM, idNORMNORM, m_SP_Norm, m_SP_Y, m_SScale, and OnDivideScalar().

Here is the call graph for this function:

void vuSpecPalette::OnOK wxCommandEvent &  ev  )  [protected]
 

Sets the proper return codes for the ok button.

Definition at line 88 of file vuSpecPalette.cpp.

void vuSpecPalette::OnPaint wxPaintEvent &  event  )  [protected]
 

customized handle for paint events

Definition at line 821 of file vuSpecPalette.cpp.

References dc, PaintColour(), PaintColours(), and PaintSpectrum().

Here is the call graph for this function:

void vuSpecPalette::OnSavePal wxCommandEvent &  ev  )  [protected]
 

Saves a transfer function.

Definition at line 126 of file vuSpecPalette.cpp.

References m_Palette, and SPalette::save().

Here is the call graph for this function:

void vuSpecPalette::OnSaveSP wxCommandEvent &  ev  )  [protected]
 

Saves a spectrum (reflectance or light).

Definition at line 163 of file vuSpecPalette.cpp.

References m_Palette, m_SelLight, m_SelRefl, SPalette::saveSpectrum(), and validSpecSelected().

Here is the call graph for this function:

void vuSpecPalette::OnSmoothW void   )  [inline, protected]
 

event handler

Definition at line 289 of file vuSpecPalette.h.

References m_Palette, m_SmoothW, and SPalette::setSmoothnessWeight().

Here is the call graph for this function:

void vuSpecPalette::OnSPLowerBound void   )  [inline, protected]
 

event handler

Definition at line 188 of file vuSpecPalette.h.

References SPalette::getSpecLB(), m_Palette, m_SelLight, m_SelRefl, m_SP_lowerBound, and validSpecSelected().

Referenced by OnColourClick().

Here is the call graph for this function:

void vuSpecPalette::OnSPName void   )  [inline, protected]
 

event handler

Definition at line 200 of file vuSpecPalette.h.

References m_Palette, m_SelLight, m_SelRefl, m_SP_name, SPalette::setSpecName(), and validSpecSelected().

Referenced by OnColourClick().

Here is the call graph for this function:

void vuSpecPalette::OnSPUpperBound void   )  [inline, protected]
 

event handler

Definition at line 176 of file vuSpecPalette.h.

References SPalette::getSpecUB(), m_Palette, m_SelLight, m_SelRefl, m_SP_upperBound, and validSpecSelected().

Referenced by OnColourClick().

Here is the call graph for this function:

void vuSpecPalette::PaintColour wxDC &  dc  )  [protected]
 

paints the selected colour

Definition at line 986 of file vuSpecPalette.cpp.

References dc, m_ColourSize, m_CompSlider, m_DColRect, SP_BLUE, SP_GREEN, and SP_RED.

Referenced by OnColourClick(), and OnPaint().

void vuSpecPalette::PaintColours wxDC &  dc  )  [protected]
 

paints the colour table

Definition at line 898 of file vuSpecPalette.cpp.

References byte, vuColour< S >::clampTo01(), ClearAndHighlight(), dc, dword, SPalette::getDesignRGBW(), SPalette::getDesignState(), getNLights(), getNRefls(), SPalette::getRLColour(), SPalette::getSpec(), SPalette::getSpecDesignState(), m_ColourSize, m_Palette, and m_PalRect.

Referenced by OnColourClick(), and OnPaint().

Here is the call graph for this function:

void vuSpecPalette::PaintSpectrum wxDC &  dc  )  [protected]
 

paints the spectrum

Definition at line 1008 of file vuSpecPalette.cpp.

References dc, SPalette::getSpec(), m_DiagRect, m_Palette, m_SelLight, m_SelRefl, max, vuColour< S >::maxComponent(), min, vuColour< S >::minComponent(), and validSpecSelected().

Referenced by OnColourClick(), and OnPaint().

Here is the call graph for this function:

void vuSpecPalette::selectSpec int  rid,
int  lid
 

select a spectrum if indices are too high, new entries will be created

Definition at line 209 of file vuSpecPalette.cpp.

References CC_GET, getNLights(), getNRefls(), and OnColourClick().

Referenced by vuTFDialogSpec::editSpecColour().

Here is the call graph for this function:

bool vuSpecPalette::TransferDataFromWindow  )  [inline, protected]
 

Part of the wxWindows architecture -- there is no data to transfer.

Definition at line 336 of file vuSpecPalette.h.

bool vuSpecPalette::TransferDataToWindow  )  [inline, protected]
 

Part of the wxWindows architecture -- there is no data to transfer.

Definition at line 334 of file vuSpecPalette.h.

void vuSpecPalette::UpdateWidgets  ) 
 

Updates the values in the widgets.

Call _after_ CreateWidgets()

Definition at line 515 of file vuSpecPalette.cpp.

References CalculateMeasurements(), CC_GET, getNLights(), getNRefls(), m_Border, m_DColRect, m_DColSpacer, m_DiagRect, m_DiagSpacer, m_PalRect, m_PalSpacer, m_SelDesColourL, m_SelDesColourR, m_SelLight, m_SelRefl, m_TopSizer, and OnColourClick().

Referenced by CreateWidgets(), vuTFDialogSpec::editSpecColour(), OnAddLight(), OnAddReflectance(), OnCreateSpectrum(), OnLoadPal(), and OnLoadSP().

Here is the call graph for this function:

bool vuSpecPalette::validSpecSelected  )  [inline, protected]
 

Is a valid spectrum selected?

Definition at line 159 of file vuSpecPalette.h.

References getNLights(), getNRefls(), m_SelLight, and m_SelRefl.

Referenced by OnCBSPDesign(), OnCBSPUseB(), OnColourClick(), OnCreatePlanckian(), OnDivideScalar(), OnLoadSP(), OnMultiplyScalar(), OnSaveSP(), OnSPLowerBound(), OnSPName(), OnSPUpperBound(), and PaintSpectrum().

Here is the call graph for this function:


Member Data Documentation

wxPoint vuSpecPalette::m_Border [protected]
 

border around palette

Definition at line 358 of file vuSpecPalette.h.

Referenced by CalculateMeasurements(), and UpdateWidgets().

wxPoint vuSpecPalette::m_ColourSize [protected]
 

Size of each colour rectangle.

Definition at line 356 of file vuSpecPalette.h.

Referenced by CalculateMeasurements(), ClearAndHighlight(), OnMouseEvent(), PaintColour(), and PaintColours().

wxSlider* vuSpecPalette::m_CompSlider[4] [protected]
 

sliders (rgbw)

Definition at line 366 of file vuSpecPalette.h.

Referenced by CreateWidgets(), OnColourClick(), and PaintColour().

wxCheckBox* vuSpecPalette::m_DC_design [protected]
 

checkboxes

Definition at line 369 of file vuSpecPalette.h.

Referenced by CreateWidgets(), OnCBDCDesign(), and OnColourClick().

wxListBox* vuSpecPalette::m_DC_FreeCol [protected]
 

list box

Definition at line 377 of file vuSpecPalette.h.

Referenced by CreateWidgets(), OnColourClick(), and OnDCFC().

wxRect vuSpecPalette::m_DColRect [protected]
 

Contains position and size of drawing area after layout.

Definition at line 383 of file vuSpecPalette.h.

Referenced by CalculateMeasurements(), CreateWidgets(), PaintColour(), and UpdateWidgets().

wxSizer * vuSpecPalette::m_DColSpacer [protected]
 

Spaceholder for self drawn elements.

e.g. drawing canvas, desing colour, palette)

Definition at line 381 of file vuSpecPalette.h.

Referenced by CreateWidgets(), and UpdateWidgets().

bool vuSpecPalette::m_DCSelected [protected]
 

Is a design colour selected?

Definition at line 346 of file vuSpecPalette.h.

wxRect vuSpecPalette::m_DiagRect [protected]
 

Contains position and size of drawing area after layout.

Definition at line 383 of file vuSpecPalette.h.

Referenced by CalculateMeasurements(), PaintSpectrum(), and UpdateWidgets().

wxSizer* vuSpecPalette::m_DiagSpacer [protected]
 

Spaceholder for self drawn elements.

e.g. drawing canvas, desing colour, palette)

Definition at line 381 of file vuSpecPalette.h.

Referenced by CreateWidgets(), and UpdateWidgets().

wxTextCtrl * vuSpecPalette::m_ErrorW [protected]
 

text controls

Definition at line 372 of file vuSpecPalette.h.

Referenced by CreateWidgets(), and OnErrorW().

wxTextCtrl * vuSpecPalette::m_FC_lowerBound [protected]
 

text controls

Definition at line 372 of file vuSpecPalette.h.

Referenced by CreateWidgets(), and OnDCFC().

wxTextCtrl* vuSpecPalette::m_FC_upperBound [protected]
 

text controls

Definition at line 372 of file vuSpecPalette.h.

Referenced by CreateWidgets(), and OnDCFC().

wxCheckBox * vuSpecPalette::m_FC_useBounds [protected]
 

checkboxes

Definition at line 369 of file vuSpecPalette.h.

Referenced by CreateWidgets(), and OnDCFC().

int vuSpecPalette::m_GridSpacing [protected]
 

Grid spacing (between rectangles).

Definition at line 361 of file vuSpecPalette.h.

Referenced by CalculateMeasurements(), and ClearAndHighlight().

SPalette* vuSpecPalette::m_Palette [protected]
 

The palette designed by this dialog.

Definition at line 343 of file vuSpecPalette.h.

Referenced by CreateWidgets(), getNLights(), getNRefls(), OnAddLight(), OnAddReflectance(), OnCBDCDesign(), OnCBSPDesign(), OnCBSPUseB(), OnCBUseV7(), OnColourClick(), OnCreatePlanckian(), OnCreateSpectrum(), OnDCFC(), OnDivideScalar(), OnErrorW(), OnGetAllDCColours(), OnGetDCColour(), OnLoadPal(), OnLoadSP(), OnMultiplyScalar(), OnSavePal(), OnSaveSP(), OnSmoothW(), OnSPLowerBound(), OnSPName(), OnSPUpperBound(), PaintColours(), and PaintSpectrum().

wxRect vuSpecPalette::m_PalRect [protected]
 

Area reserved for grids of colours.

Definition at line 354 of file vuSpecPalette.h.

Referenced by CalculateMeasurements(), ClearAndHighlight(), OnMouseEvent(), PaintColours(), and UpdateWidgets().

wxSizer * vuSpecPalette::m_PalSpacer [protected]
 

Spaceholder for self drawn elements.

e.g. drawing canvas, desing colour, palette)

Definition at line 381 of file vuSpecPalette.h.

Referenced by CreateWidgets(), and UpdateWidgets().

wxTextCtrl * vuSpecPalette::m_PlanckT [protected]
 

text controls

Definition at line 372 of file vuSpecPalette.h.

Referenced by CreateWidgets(), and OnCreatePlanckian().

int vuSpecPalette::m_SectionSpacing [protected]
 

Section spacing (between left and right halves of dialog box).

Definition at line 363 of file vuSpecPalette.h.

Referenced by CalculateMeasurements().

int vuSpecPalette::m_SelDesColourL [protected]
 

selected design colour (reflectance (y) and light (x))

Definition at line 348 of file vuSpecPalette.h.

Referenced by ClearAndHighlight(), OnCBDCDesign(), OnColourClick(), OnDCFC(), OnGetAllDCColours(), OnGetDCColour(), UpdateWidgets(), and vuSpecPalette().

int vuSpecPalette::m_SelDesColourR [protected]
 

selected design colour (reflectance (y) and light (x))

Definition at line 348 of file vuSpecPalette.h.

Referenced by ClearAndHighlight(), OnCBDCDesign(), OnColourClick(), OnDCFC(), OnGetAllDCColours(), OnGetDCColour(), UpdateWidgets(), and vuSpecPalette().

int vuSpecPalette::m_SelLight [protected]
 

selected light

Definition at line 351 of file vuSpecPalette.h.

Referenced by ClearAndHighlight(), OnCBSPDesign(), OnCBSPUseB(), OnColourClick(), OnCreatePlanckian(), OnDivideScalar(), OnLoadPal(), OnLoadSP(), OnMultiplyScalar(), OnSaveSP(), OnSPLowerBound(), OnSPName(), OnSPUpperBound(), PaintSpectrum(), UpdateWidgets(), validSpecSelected(), and vuSpecPalette().

int vuSpecPalette::m_SelRefl [protected]
 

selected reflectance

Definition at line 350 of file vuSpecPalette.h.

Referenced by ClearAndHighlight(), OnCBSPDesign(), OnCBSPUseB(), OnColourClick(), OnCreatePlanckian(), OnDivideScalar(), OnLoadPal(), OnLoadSP(), OnMultiplyScalar(), OnSaveSP(), OnSPLowerBound(), OnSPName(), OnSPUpperBound(), PaintSpectrum(), UpdateWidgets(), validSpecSelected(), and vuSpecPalette().

wxTextCtrl * vuSpecPalette::m_SmoothW [protected]
 

text controls

Definition at line 372 of file vuSpecPalette.h.

Referenced by CreateWidgets(), and OnSmoothW().

wxCheckBox * vuSpecPalette::m_SP_design [protected]
 

checkboxes

Definition at line 369 of file vuSpecPalette.h.

Referenced by CreateWidgets(), OnCBSPDesign(), and OnColourClick().

wxTextCtrl * vuSpecPalette::m_SP_lowerBound [protected]
 

text controls

Definition at line 372 of file vuSpecPalette.h.

Referenced by CreateWidgets(), OnColourClick(), and OnSPLowerBound().

wxTextCtrl * vuSpecPalette::m_SP_name [protected]
 

text controls

Definition at line 372 of file vuSpecPalette.h.

Referenced by CreateWidgets(), OnColourClick(), and OnSPName().

wxTextCtrl * vuSpecPalette::m_SP_Norm [protected]
 

text controls

Definition at line 372 of file vuSpecPalette.h.

Referenced by CreateWidgets(), OnColourClick(), and OnNormVal().

wxTextCtrl * vuSpecPalette::m_SP_upperBound [protected]
 

text controls

Definition at line 372 of file vuSpecPalette.h.

Referenced by CreateWidgets(), OnColourClick(), and OnSPUpperBound().

wxCheckBox * vuSpecPalette::m_SP_useBounds [protected]
 

checkboxes

Definition at line 369 of file vuSpecPalette.h.

Referenced by CreateWidgets(), OnCBSPUseB(), and OnColourClick().

wxTextCtrl * vuSpecPalette::m_SP_Y [protected]
 

text controls

Definition at line 372 of file vuSpecPalette.h.

Referenced by CreateWidgets(), OnColourClick(), and OnNormVal().

wxTextCtrl * vuSpecPalette::m_SScale [protected]
 

text controls

Definition at line 372 of file vuSpecPalette.h.

Referenced by CreateWidgets(), OnDivideScalar(), OnMultiplyScalar(), and OnNormVal().

wxSizer* vuSpecPalette::m_TopSizer [protected]
 

root sizer, needed for redesign

Definition at line 385 of file vuSpecPalette.h.

Referenced by CreateWidgets(), and UpdateWidgets().

wxCheckBox * vuSpecPalette::m_useV7 [protected]
 

checkboxes

Definition at line 369 of file vuSpecPalette.h.

Referenced by CreateWidgets(), OnCBUseV7(), OnGetAllDCColours(), and OnGetDCColour().


The documentation for this class was generated from the following files:
Generated on Wed Dec 15 21:22:03 2004 for vuVolume by  doxygen 1.3.9.1