Wt  3.3.8
Classes | Public Member Functions | Protected Member Functions | List of all members
Wt::Chart::WCartesian3DChart Class Reference

A 3D Cartesian chart. More...

Inheritance diagram for Wt::Chart::WCartesian3DChart:
Inheritance graph
[legend]

Classes

class  IntersectionPlane
 An invisible intersection plane. More...
 

Public Member Functions

 WCartesian3DChart (WContainerWidget *parent=0)
 Constructor. More...
 
 WCartesian3DChart (ChartType type, WContainerWidget *parent=0)
 Constructor. More...
 
 ~WCartesian3DChart ()
 Destructor.
 
void addDataSeries (WAbstractDataSeries3D *dataseries)
 Add a dataseries to the chart. More...
 
void removeDataSeries (WAbstractDataSeries3D *dataseries)
 Removes a dataseries from a chart. More...
 
const std::vector< WAbstractDataSeries3D * > & dataSeries () const
 Returns all dataseries that were added to this chart. More...
 
WAxisaxis (Axis axis)
 Returns the specified axis belonging to the chart.
 
const WAxisaxis (Axis axis) const
 Returns the specified axis belonging to the chart.
 
void setGridEnabled (Plane plane, Axis axis, bool enabled=true)
 Enable/disable gridlines. More...
 
bool isGridEnabled (Plane plane, Axis axis)
 Returns whether the gridlines are enabled. More...
 
void setIntersectionLinesEnabled (bool enabled=true)
 Set whether intersection lines are shown between surface charts. More...
 
bool isIntersectionLinesEnabled () const
 Returns whether intersection lines are shown between surface charts. More...
 
void setIntersectionLinesColor (WColor color)
 Sets the color of the intersection lines between surface charts.
 
const WColorintersectionLinesColor () const
 Gets the color of the intersection lines between surface charts. More...
 
void setIntersectionPlanes (const std::vector< IntersectionPlane > &intersectionPlanes)
 Set the invisible planes with which intersections are drawn. More...
 
const std::vector< IntersectionPlane > & intersectionPlanes () const
 Get the invisible planes with which intersections are drawn. More...
 
void setGridLinesPen (const WPen &pen)
 Sets the pen used for drawing the gridlines. More...
 
const WPengridLinesPen () const
 Returns the pen used for drawing the gridlines. More...
 
void setCubeLinesPen (const WPen &pen)
 Sets the pen used to draw the edges of the plotcube. More...
 
const WPencubeLinesPen () const
 Returns a reference to the pen used for drawing the edges of the plotcube. More...
 
void setType (ChartType type)
 Sets the type of this chart. More...
 
ChartType type () const
 Returns the type of this chart. More...
 
void setPalette (WChartPalette *palette)
 Sets the palette for this chart. More...
 
WChartPalettepalette () const
 Returns the palette used for this chart. More...
 
void setBackground (const WColor &background)
 Sets the background color for this chart. More...
 
const WColorbackground () const
 Returns the background color used for this chart. More...
 
void setTitle (const WString &title)
 Sets the title that is put on the chart. More...
 
const WStringtitle () const
 Returns the title that is put at the top of this chart. More...
 
void setTitleFont (const WFont &titleFont)
 Sets the font that is used to draw the title. More...
 
const WFonttitleFont () const
 Returns the font used to draw the title. More...
 
void setLegendEnabled (bool enabled)
 Enables the legend. More...
 
bool isLegendEnabled () const
 Returns whether the legend is enabled. More...
 
void setLegendLocation (Side side, AlignmentFlag alignment)
 Configures the location of the legend. More...
 
void setLegendStyle (const WFont &font, const WPen &border, const WBrush &background)
 Configures the legend decoration. More...
 
Side legendSide () const
 Returns the legend side. More...
 
AlignmentFlag legendAlignment () const
 Returns the legend alignment. More...
 
int legendColumns () const
 Returns the number of legend columns. More...
 
WLength legendColumnWidth () const
 Returns the legend column width. More...
 
WFont legendFont () const
 Returns the legend font. More...
 
WPen legendBorder () const
 Returns the legend border pen. More...
 
WBrush legendBackground () const
 Returns the legend background brush. More...
 
void setLegendColumns (int columns, const WLength &columnWidth)
 Configures the number of columns and columnwidth of the legend. More...
 
void initLayout ()
 Initializes the chart layout. More...
 
void setCameraMatrix (const WMatrix4x4 &matrix)
 Set the camera-matrix. More...
 
WMatrix4x4 cameraMatrix () const
 Get the current camera-matrix. More...
 
JavaScriptMatrix4x4 jsMatrix () const
 Get the current camera matrix as a JavaScriptMatrix4x4. More...
 
void updateChart (WFlags< ChartUpdates > flags)
 Update the chart.
 
void resize (const WLength &width, const WLength &height)
 Resizes the widget. More...
 
- Public Member Functions inherited from Wt::WGLWidget
 WGLWidget (WContainerWidget *parent=0)
 Construct a GL widget. More...
 
 ~WGLWidget ()
 Destructor.
 
void setRenderOptions (WFlags< RenderOption > options)
 Sets the rendering option. More...
 
void repaintGL (WFlags< ClientSideRenderer > which)
 Request invocation of resizeGL, paintGL and/or updateGL. More...
 
bool restoringContext () const
 Returns whether a lost context is in the process of being restored. More...
 
void resize (const WLength &width, const WLength &height)
 Resizes the widget. More...
 
void setClientSideMouseHandler (const std::string &handlerCode)
 Set a custom mouse handler based on the given JavaScript code. More...
 
void setClientSideLookAtHandler (const JavaScriptMatrix4x4 &m, double lX, double lY, double lZ, double uX, double uY, double uZ, double pitchRate, double yawRate)
 Add a mouse handler to the widget that looks at a given point. More...
 
void setClientSideWalkHandler (const JavaScriptMatrix4x4 &m, double frontStep, double rotStep)
 Add a mouse handler to the widget that allows 'walking' in the scene. More...
 
void setAlternativeContent (WWidget *alternative)
 Sets the content to be displayed when WebGL is not available. More...
 
JSlotrepaintSlot ()
 A JavaScript slot that repaints the widget when triggered. More...
 
void enableClientErrorChecks (bool enable=true)
 enable client-side error messages (read detailed doc!) More...
 
void injectJS (const std::string &jsString)
 Inject JavaScript into the current js-stream. More...
 
void activeTexture (GLenum texture)
 GL function to activate an existing texture. More...
 
void attachShader (Program program, Shader shader)
 GL function to attach a shader to a program. More...
 
void bindAttribLocation (Program program, unsigned index, const std::string &name)
 GL function to bind an attribute to a given location. More...
 
void bindBuffer (GLenum target, Buffer buffer)
 GL function to bind a buffer to a target. More...
 
void bindFramebuffer (GLenum target, Framebuffer framebuffer)
 GL function to bind a frame buffer to a target. More...
 
void bindRenderbuffer (GLenum target, Renderbuffer renderbuffer)
 GL function to bind a render buffer to a target. More...
 
void bindTexture (GLenum target, Texture texture)
 GL function to bind a texture to a target. More...
 
void blendColor (double red, double green, double blue, double alpha)
 GL function to set the blending color. More...
 
void blendEquation (GLenum mode)
 GL function to set the blending equation. More...
 
void blendEquationSeparate (GLenum modeRGB, GLenum modeAlpha)
 GL function that sets separate blending functions for RGB and alpha. More...
 
void blendFunc (GLenum sfactor, GLenum dfactor)
 GL function to configure the blending function. More...
 
void blendFuncSeparate (GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha)
 GL function that configures the blending function. More...
 
void bufferData (GLenum target, int size, GLenum usage)
 glBufferData - create and initialize a buffer object's data store More...
 
void bufferData (GLenum target, ArrayBuffer res, GLenum usage)
 glBufferData - create and initialize a buffer object's data store from an ArrayBuffer More...
 
void bufferData (GLenum target, ArrayBuffer res, unsigned arrayBufferOffset, unsigned arrayBufferSize, GLenum usage)
 glBufferData - create and initialize a buffer object's data store from an ArrayBuffer More...
 
void bufferSubData (GLenum target, unsigned offset, ArrayBuffer res)
 Initialize a buffer object's data store from an ArrayBuffer. More...
 
void bufferSubData (GLenum target, unsigned offset, ArrayBuffer res, unsigned arrayBufferOffset, unsigned size)
 Initialize a buffer object's data store from an ArrayBuffer. More...
 
template<typename Iterator >
void bufferDatafv (GLenum target, const Iterator begin, const Iterator end, GLenum usage, bool binary=false)
 GL function that loads float or double data in a VBO. More...
 
template<typename Iterator >
void bufferDataiv (GLenum target, const Iterator begin, const Iterator end, GLenum usage, GLenum type)
 GL function that loads integer data in a VBO. More...
 
template<typename Iterator >
void bufferSubDatafv (GLenum target, unsigned offset, const Iterator begin, const Iterator end, bool binary=false)
 GL function that updates an existing VBO with new float or double data. More...
 
template<typename Iterator >
void bufferSubDataiv (GLenum target, unsigned offset, const Iterator begin, Iterator end, GLenum type)
 GL function that updates an existing VBO with new integer data. More...
 
void bufferDatafv (GLenum target, const std::vector< float > &buffer, GLenum usage, bool binary=false)
 GL function that loads float or double data in a VBO. More...
 
void clearBinaryResources ()
 remove all binary buffer resources More...
 
void bufferDataiv (GLenum target, std::vector< int > &buffer, GLenum usage, GLenum type)
 GL function that updates an existing VBO with new integer data. More...
 
void bufferSubDatafv (GLenum target, unsigned offset, const std::vector< float > &buffer, bool binary=false)
 GL function that updates an existing VBO with new float data. More...
 
void bufferSubDataiv (GLenum target, unsigned offset, std::vector< int > &buffer, GLenum type)
 GL function that loads integer data in a VBO. More...
 
void clear (WFlags< GLenum > mask)
 GL function that clears the given buffers. More...
 
void clearColor (double r, double g, double b, double a)
 GL function that sets the clear color of the color buffer. More...
 
void clearDepth (double depth)
 GL function that configures the depth to be set when the depth buffer is cleared. More...
 
void clearStencil (int s)
 GL function. More...
 
void colorMask (bool red, bool green, bool blue, bool alpha)
 GL function. More...
 
void compileShader (Shader shader)
 GL function to compile a shader. More...
 
void copyTexImage2D (GLenum target, int level, GLenum internalformat, int x, int y, unsigned width, unsigned height, int border)
 GL function to copy a texture image. More...
 
void copyTexSubImage2D (GLenum target, int level, int xoffset, int yoffset, int x, int y, unsigned width, unsigned height)
 GL function that copies a part of a texture image. More...
 
Buffer createBuffer ()
 GL function that creates an empty VBO. More...
 
ArrayBuffer createAndLoadArrayBuffer (const std::string &url)
 Function that creates an ArrayBuffer by loading data from a given URL. (deprecated) More...
 
Framebuffer createFramebuffer ()
 GL function that creates a frame buffer object. More...
 
Program createProgram ()
 GL function that creates an empty program. More...
 
Renderbuffer createRenderbuffer ()
 GL function that creates a render buffer object. More...
 
Shader createShader (GLenum shader)
 GL function that creates an empty shader. More...
 
Texture createTexture ()
 GL function that creates an empty texture. More...
 
Texture createTextureAndLoad (const std::string &url)
 GL function that creates an image texture. More...
 
WPaintDevicecreatePaintDevice (const WLength &width, const WLength &height)
 returns an paintdevice that can be used to paint a GL texture More...
 
void cullFace (GLenum mode)
 GL function that configures the backface culling mode. More...
 
void deleteBuffer (Buffer buffer)
 GL function that deletes a VBO. More...
 
void deleteFramebuffer (Framebuffer framebuffer)
 GL function that deletes a frame buffer. More...
 
void deleteProgram (Program program)
 GL function that deletes a program. More...
 
void deleteRenderbuffer (Renderbuffer renderbuffer)
 GL function that deletes a render buffer. More...
 
void deleteShader (Shader shader)
 GL function that depetes a shader. More...
 
void deleteTexture (Texture texture)
 GL function that deletes a texture. More...
 
void depthFunc (GLenum func)
 GL function to set the depth test function. More...
 
void depthMask (bool flag)
 GL function that enables or disables writing to the depth buffer. More...
 
void depthRange (double zNear, double zFar)
 GL function that specifies to what range the normalized [-1,1] z values should match. More...
 
void detachShader (Program program, Shader shader)
 GL function that detaches a shader from a program. More...
 
void disable (GLenum cap)
 GL function to disable features. More...
 
void disableVertexAttribArray (AttribLocation index)
 GL function to disable the vertex attribute array. More...
 
void drawArrays (GLenum mode, int first, unsigned count)
 GL function to draw a VBO. More...
 
void drawElements (GLenum mode, unsigned count, GLenum type, unsigned offset)
 GL function to draw indexed VBOs. More...
 
void enable (GLenum cap)
 GL function to enable features. More...
 
void enableVertexAttribArray (AttribLocation index)
 GL function to enable the vertex attribute array. More...
 
void finish ()
 GL function to wait until given commands are executed. More...
 
void flush ()
 GL function to force execution of GL commands in finite time. More...
 
void framebufferRenderbuffer (GLenum target, GLenum attachment, GLenum renderbuffertarget, Renderbuffer renderbuffer)
 GL function to attach the given renderbuffer to the currently bound frame buffer. More...
 
void framebufferTexture2D (GLenum target, GLenum attachment, GLenum textarget, Texture texture, int level)
 GL function to render directly into a texture image. More...
 
void frontFace (GLenum mode)
 GL function that specifies which side of a triangle is the front side. More...
 
void generateMipmap (GLenum target)
 GL function that generates a set of mipmaps for a texture object. More...
 
AttribLocation getAttribLocation (Program program, const std::string &attrib)
 GL function to retrieve an attribute's location in a Program. More...
 
UniformLocation getUniformLocation (Program program, const std::string location)
 GL function to retrieve a Uniform's location in a Program. More...
 
void hint (GLenum target, GLenum mode)
 GL function to give hints to the render pipeline. More...
 
void lineWidth (double width)
 GL function to set the line width. More...
 
void linkProgram (Program program)
 GL function to link a program. More...
 
void pixelStorei (GLenum pname, int param)
 GL function to set the pixel storage mode. More...
 
void polygonOffset (double factor, double units)
 GL function to apply modifications to Z values. More...
 
void renderbufferStorage (GLenum target, GLenum internalformat, unsigned width, unsigned height)
 GL function to allocate the appropriate amount of memory for a render buffer. More...
 
void sampleCoverage (double value, bool invert)
 GL function to set multisample parameters. More...
 
void scissor (int x, int y, unsigned width, unsigned height)
 GL function to define the scissor box. More...
 
void shaderSource (Shader shader, const std::string &src)
 GL function to set a shader's source code. More...
 
void stencilFunc (GLenum func, int ref, unsigned mask)
 GL function to set stencil test parameters. More...
 
void stencilFuncSeparate (GLenum face, GLenum func, int ref, unsigned mask)
 GL function to set stencil test parameters for front and/or back stencils. More...
 
void stencilMask (unsigned mask)
 GL function to control which bits are to be written in the stencil buffer. More...
 
void stencilMaskSeparate (GLenum face, unsigned mask)
 GL function to control which bits are written to the front and/or back stencil buffers. More...
 
void stencilOp (GLenum fail, GLenum zfail, GLenum zpass)
 GL function to set stencil test actions. More...
 
void stencilOpSeparate (GLenum face, GLenum fail, GLenum zfail, GLenum zpass)
 GL function to set front and/or back stencil test actions separately. More...
 
void texImage2D (GLenum target, int level, GLenum internalformat, unsigned width, unsigned height, int border, GLenum format)
 GL function to reserve space for a 2D texture, without specifying its contents. More...
 
void texImage2D (GLenum target, int level, GLenum internalformat, GLenum format, GLenum type, WImage *image)
 GL function to load a 2D texture from a WImage. More...
 
void texImage2D (GLenum target, int level, GLenum internalformat, GLenum format, GLenum type, WVideo *video)
 GL function to load a 2D texture from a WVideo. More...
 
void texImage2D (GLenum target, int level, GLenum internalformat, GLenum format, GLenum type, std::string filename)
 GL function to load a 2D texture from a file. More...
 
void texImage2D (GLenum target, int level, GLenum internalformat, GLenum format, GLenum type, WPaintDevice *paintdevice)
 GL function to load a 2D texture from a WPaintDevice. More...
 
void texImage2D (GLenum target, int level, GLenum internalformat, GLenum format, GLenum type, Texture texture)
 GL function to load a 2D texture loaded with createTextureAndLoad() More...
 
void texParameteri (GLenum target, GLenum pname, GLenum param)
 GL function to set texture parameters. More...
 
void uniform1f (const UniformLocation &location, double x)
 GL function to set the value of a uniform variable of the current program. More...
 
template<typename FloatArray >
void uniform1fv (const UniformLocation &location, const FloatArray *value)
 GL function to set the value of a uniform variable of the current program. More...
 
void uniform1fv (const UniformLocation &location, const JavaScriptVector &v)
 GL function to set the value of a uniform variable of the current program. More...
 
void uniform1i (const UniformLocation &location, int x)
 GL function to set the value of a uniform variable of the current program. More...
 
template<typename IntArray >
void uniform1iv (const UniformLocation &location, const IntArray *value)
 GL function to set the value of a uniform variable of the current program. More...
 
void uniform2f (const UniformLocation &location, double x, double y)
 GL function to set the value of a uniform variable of the current program. More...
 
template<typename FloatArray >
void uniform2fv (const UniformLocation &location, const FloatArray *value)
 GL function to set the value of a uniform variable of the current program. More...
 
void uniform2fv (const UniformLocation &location, const JavaScriptVector &v)
 GL function to set the value of a uniform variable of the current program. More...
 
void uniform2i (const UniformLocation &location, int x, int y)
 GL function to set the value of a uniform variable of the current program. More...
 
template<typename IntArray >
void uniform2iv (const UniformLocation &location, const IntArray *value)
 GL function to set the value of a uniform variable of the current program. More...
 
void uniform3f (const UniformLocation &location, double x, double y, double z)
 GL function to set the value of a uniform variable of the current program. More...
 
template<typename FloatArray >
void uniform3fv (const UniformLocation &location, const FloatArray *value)
 GL function to set the value of a uniform variable of the current program. More...
 
void uniform3fv (const UniformLocation &location, const JavaScriptVector &v)
 GL function to set the value of a uniform variable of the current program. More...
 
void uniform3i (const UniformLocation &location, int x, int y, int z)
 GL function to set the value of a uniform variable of the current program. More...
 
template<typename IntArray >
void uniform3iv (const UniformLocation &location, const IntArray *value)
 GL function to set the value of a uniform variable of the current program. More...
 
void uniform4f (const UniformLocation &location, double x, double y, double z, double w)
 GL function to set the value of a uniform variable of the current program. More...
 
template<typename FloatArray >
void uniform4fv (const UniformLocation &location, const FloatArray *value)
 GL function to set the value of a uniform variable of the current program. More...
 
void uniform4fv (const UniformLocation &location, const JavaScriptVector &v)
 GL function to set the value of a uniform variable of the current program. More...
 
void uniform4i (const UniformLocation &location, int x, int y, int z, int w)
 GL function to set the value of a uniform variable of the current program. More...
 
template<typename IntArray >
void uniform4iv (const UniformLocation &location, const IntArray *value)
 GL function to set the value of a uniform variable of the current program. More...
 
template<typename MatrixType >
void uniformMatrix2fv (const UniformLocation &location, bool transpose, const MatrixType *value)
 GL function to set the value of a uniform matrix of the current program. More...
 
template<typename MatrixType >
void uniformMatrix2 (const UniformLocation &location, const WGenericMatrix< MatrixType, 2, 2 > &m)
 GL function to set the value of a uniform matrix of the current program. More...
 
template<typename MatrixType >
void uniformMatrix3fv (const UniformLocation &location, bool transpose, const MatrixType *value)
 GL function to set the value of a uniform matrix of the current program. More...
 
template<typename MatrixType >
void uniformMatrix3 (const UniformLocation &location, const WGenericMatrix< MatrixType, 3, 3 > &m)
 GL function to set the value of a uniform matrix of the current program. More...
 
template<typename MatrixType >
void uniformMatrix4fv (const UniformLocation &location, bool transpose, const MatrixType *value)
 GL function to set the value of a uniform matrix of the current program. More...
 
template<typename MatrixType >
void uniformMatrix4 (const UniformLocation &location, const WGenericMatrix< MatrixType, 4, 4 > &m)
 GL function to set the value of a uniform matrix of the current program. More...
 
void uniformMatrix4 (const UniformLocation &location, const JavaScriptMatrix4x4 &m)
 GL function to set the value of a uniform matrix of the current program. More...
 
void useProgram (Program program)
 GL function to set the current active shader program. More...
 
void validateProgram (Program program)
 GL function to validate a program. More...
 
void vertexAttrib1f (AttribLocation location, double x)
 GL function to set the value of an attribute of the current program. More...
 
template<typename FloatArray >
void vertexAttrib1fv (AttribLocation location, const FloatArray *values)
 GL function to set the value of an attribute of the current program. More...
 
void vertexAttrib2f (AttribLocation location, double x, double y)
 GL function to set the value of an attribute of the current program. More...
 
template<typename FloatArray >
void vertexAttrib2fv (AttribLocation location, const FloatArray *values)
 GL function to set the value of an attribute of the current program. More...
 
void vertexAttrib3f (AttribLocation location, double x, double y, double z)
 GL function to set the value of an attribute of the current program. More...
 
template<typename FloatArray >
void vertexAttrib3fv (AttribLocation location, const FloatArray *values)
 GL function to set the value of an attribute of the current program. More...
 
void vertexAttrib4f (AttribLocation location, double x, double y, double z, double w)
 GL function to set the value of an attribute of the current program. More...
 
template<typename FloatArray >
void vertexAttrib4fv (AttribLocation location, const FloatArray *values)
 GL function to set the value of an attribute of the current program. More...
 
void vertexAttribPointer (AttribLocation location, int size, GLenum type, bool normalized, unsigned stride, unsigned offset)
 GL function to bind a VBO to an attribute. More...
 
void viewport (int x, int y, unsigned width, unsigned height)
 GL function to set the viewport. More...
 
JavaScriptMatrix4x4 createJavaScriptMatrix4 ()
 Create a matrix that can be manipulated in client-side JavaScript. More...
 
void addJavaScriptMatrix4 (JavaScriptMatrix4x4 &m)
 Register a matrix with this WGLWidget. More...
 
void initJavaScriptMatrix4 (JavaScriptMatrix4x4 &m)
 Initialize the client-side JavaScript for the given JavaScriptMatrix4x4. More...
 
template<typename MatrixType >
void setJavaScriptMatrix4 (JavaScriptMatrix4x4 &jsm, const WGenericMatrix< MatrixType, 4, 4 > &m)
 Set the value of a client-side JavaScript matrix created by createJavaScriptMatrix4x4() More...
 
JavaScriptVector createJavaScriptVector (unsigned length)
 Create a vector of a certain length that can be manipulated in client-side JavaScript. More...
 
void addJavaScriptVector (JavaScriptVector &v)
 Register a vector with this WGLWidget. More...
 
void initJavaScriptVector (JavaScriptVector &v)
 Initialize the client-side JavaScript for the given JavaScriptVector. More...
 
void setJavaScriptVector (JavaScriptVector &jsv, const std::vector< float > &v)
 Set the value of a client-side JavaScript vector created by createJavaScriptVector() More...
 
- Public Member Functions inherited from Wt::WInteractWidget
 WInteractWidget (WContainerWidget *parent=0)
 Create an InteractWidget with optional parent.
 
EventSignal< WKeyEvent > & keyWentDown ()
 Event signal emitted when a keyboard key is pushed down. More...
 
EventSignal< WKeyEvent > & keyPressed ()
 Event signal emitted when a "character" was entered. More...
 
EventSignal< WKeyEvent > & keyWentUp ()
 Event signal emitted when a keyboard key is released. More...
 
EventSignalenterPressed ()
 Event signal emitted when enter was pressed. More...
 
EventSignalescapePressed ()
 Event signal emitted when escape was pressed. More...
 
EventSignal< WMouseEvent > & clicked ()
 Event signal emitted when a mouse key was clicked on this widget. More...
 
EventSignal< WMouseEvent > & doubleClicked ()
 Event signal emitted when a mouse key was double clicked on this widget. More...
 
EventSignal< WMouseEvent > & mouseWentDown ()
 Event signal emitted when a mouse key was pushed down on this widget. More...
 
EventSignal< WMouseEvent > & mouseWentUp ()
 Event signal emitted when a mouse key was released on this widget. More...
 
EventSignal< WMouseEvent > & mouseWentOut ()
 Event signal emitted when the mouse went out of this widget. More...
 
EventSignal< WMouseEvent > & mouseWentOver ()
 Event signal emitted when the mouse entered this widget. More...
 
EventSignal< WMouseEvent > & mouseMoved ()
 Event signal emitted when the mouse moved over this widget. More...
 
EventSignal< WMouseEvent > & mouseDragged ()
 Event signal emitted when the mouse is dragged over this widget. More...
 
EventSignal< WMouseEvent > & mouseWheel ()
 Event signal emitted when the mouse scroll wheel was used. More...
 
EventSignal< WTouchEvent > & touchStarted ()
 Event signal emitted when a finger is placed on the screen. More...
 
EventSignal< WTouchEvent > & touchEnded ()
 Event signal emitted when a finger is removed from the screen. More...
 
EventSignal< WTouchEvent > & touchMoved ()
 Event signal emitted when a finger, which is already placed on the screen, is moved across the screen. More...
 
EventSignal< WGestureEvent > & gestureStarted ()
 Event signal emitted when a gesture is started. More...
 
EventSignal< WGestureEvent > & gestureChanged ()
 Event signal emitted when a gesture is changed. More...
 
EventSignal< WGestureEvent > & gestureEnded ()
 Event signal emitted when a gesture is ended. More...
 
void setDraggable (const std::string &mimeType, WWidget *dragWidget=0, bool isDragWidgetOnly=false, WObject *sourceWidget=0)
 Configure dragging for drag and drop. More...
 
void unsetDraggable ()
 Disable drag & drop for this widget. More...
 
void setMouseOverDelay (int delay)
 Sets a delay for the mouse over event. More...
 
int mouseOverDelay () const
 Returns the mouse over signal delay. More...
 
virtual void setPopup (bool popup)
 Lets the widget overlay over other sibling widgets. More...
 
virtual void load ()
 Loads content just before the widget is used. More...
 
virtual bool isEnabled () const
 Returns whether the widget is enabled. More...
 
- Public Member Functions inherited from Wt::WWebWidget
 WWebWidget (WContainerWidget *parent=0)
 Construct a WebWidget with a given parent. More...
 
virtual void setPositionScheme (PositionScheme scheme)
 Sets the CSS position scheme. More...
 
virtual PositionScheme positionScheme () const
 Returns the CSS position scheme. More...
 
virtual void setOffsets (const WLength &offset, WFlags< Side > sides=All)
 Sets CSS offsets for a non-statically positioned widget. More...
 
virtual WLength offset (Side s) const
 Returns a CSS offset. More...
 
virtual WLength width () const
 Returns the width. More...
 
virtual WLength height () const
 Returns the height. More...
 
virtual void setMinimumSize (const WLength &width, const WLength &height)
 Sets a minimum size. More...
 
virtual WLength minimumWidth () const
 Returns the minimum width. More...
 
virtual WLength minimumHeight () const
 Returns the minimum height. More...
 
virtual void setMaximumSize (const WLength &width, const WLength &height)
 Sets a maximum size. More...
 
virtual WLength maximumWidth () const
 Returns the maximum width. More...
 
virtual WLength maximumHeight () const
 Returns the maximum height. More...
 
virtual void setLineHeight (const WLength &height)
 Sets the CSS line height for contained text.
 
virtual WLength lineHeight () const
 Returns the CSS line height for contained text. More...
 
virtual void setFloatSide (Side s)
 Specifies a CSS float side. More...
 
virtual Side floatSide () const
 Returns the CSS float side. More...
 
virtual void setClearSides (WFlags< Side > sides)
 Sets the sides that should be cleared of floats. More...
 
virtual WFlags< SideclearSides () const
 Returns the sides that should remain empty. More...
 
virtual void setMargin (const WLength &margin, WFlags< Side > sides=All)
 Sets CSS margins around the widget. More...
 
virtual WLength margin (Side side) const
 Returns a CSS margin set. More...
 
virtual void setHiddenKeepsGeometry (bool enabled)
 Sets whether the widget keeps its geometry when hidden. More...
 
virtual bool hiddenKeepsGeometry () const
 Returns whether the widget keeps its geometry when hidden. More...
 
virtual void setHidden (bool hidden, const WAnimation &animation=WAnimation())
 Hides or shows the widget. More...
 
virtual bool isHidden () const
 Returns whether the widget is set hidden. More...
 
virtual bool isVisible () const
 Returns whether the widget is visible. More...
 
virtual void setDisabled (bool disabled)
 Sets whether the widget is disabled. More...
 
virtual bool isDisabled () const
 Returns whether the widget is set disabled. More...
 
virtual bool isPopup () const
 Returns whether the widget is overlayed. More...
 
virtual void setInline (bool isInline)
 Sets whether the widget is displayed inline or as a block. More...
 
virtual bool isInline () const
 Returns whether the widget is displayed inline or as block. More...
 
virtual void setDecorationStyle (const WCssDecorationStyle &style)
 Sets a CSS decoration style. More...
 
virtual WCssDecorationStyledecorationStyle ()
 Returns the decoration style of this widget. More...
 
virtual void setStyleClass (const WString &styleClass)
 Sets (one or more) CSS style classes. More...
 
virtual WString styleClass () const
 Returns the CSS style class. More...
 
virtual void addStyleClass (const WString &styleClass, bool force=false)
 Adds a CSS style class. More...
 
virtual void removeStyleClass (const WString &styleClass, bool force=false)
 Removes a CSS style class. More...
 
virtual bool hasStyleClass (const WString &styleClass) const
 Returns whether the widget has a style class.
 
virtual void setVerticalAlignment (AlignmentFlag alignment, const WLength &length=WLength())
 Sets the vertical alignment. More...
 
virtual AlignmentFlag verticalAlignment () const
 Returns the vertical alignment. More...
 
virtual WLength verticalAlignmentLength () const
 Returns the fixed vertical alignment that was set. More...
 
virtual void setToolTip (const WString &text, TextFormat textFormat=PlainText)
 Sets a tooltip. More...
 
virtual void setDeferredToolTip (bool enable, TextFormat textFormat=PlainText)
 Enable deferred tooltip. More...
 
virtual WString toolTip () const
 Returns the tooltip.
 
virtual void refresh ()
 Refresh the widget. More...
 
virtual void setAttributeValue (const std::string &name, const WString &value)
 Sets an attribute value. More...
 
virtual WString attributeValue (const std::string &name) const
 Returns an attribute value. More...
 
virtual void setJavaScriptMember (const std::string &name, const std::string &value)
 Sets a JavaScript member. More...
 
virtual std::string javaScriptMember (const std::string &name) const
 Returns the value of a JavaScript member. More...
 
virtual void callJavaScriptMember (const std::string &name, const std::string &args)
 Calls a JavaScript member. More...
 
virtual bool loaded () const
 Returns whether this widget has been loaded. More...
 
virtual void setId (const std::string &id)
 Sets the CSS Id. More...
 
virtual WWidgetfind (const std::string &name)
 Finds a descendent widget by name. More...
 
virtual WWidgetfindById (const std::string &id)
 Finds a descendent widget by id.
 
virtual void setSelectable (bool selectable)
 Sets as selectable. More...
 
virtual void doJavaScript (const std::string &javascript)
 Executes the given JavaScript statements when the widget is rendered or updated. More...
 
virtual const std::string id () const
 Returns the (unique) identifier for this object. More...
 
void setLoadLaterWhenInvisible (bool)
 Change the way the widget is loaded when invisible. More...
 
std::string htmlTagName () const
 returns the current html tag name More...
 
void setHtmlTagName (const std::string &tag)
 set the custom HTML tag name More...
 
const std::vector< WWidget * > & children () const
 Returns contained widgets. More...
 
SignalchildrenChanged ()
 Signal emitted when children have been added or removed. More...
 
virtual void setCanReceiveFocus (bool enabled)
 Sets whether the widget can receive focus. More...
 
virtual bool canReceiveFocus () const
 Returns whether the widget can receive focus. More...
 
virtual bool setFirstFocus ()
 Set focus on the widget's first descendant. More...
 
virtual void setFocus (bool focus)
 Sets focus. More...
 
virtual bool hasFocus () const
 Returns whether the widget currently has the focus.
 
virtual void setTabIndex (int index)
 Sets the tab index. More...
 
virtual int tabIndex () const
 Returns the tab index. More...
 
EventSignalblurred ()
 Signal emitted when the widget lost focus. More...
 
EventSignalfocussed ()
 Signal emitted when the widget recieved focus. More...
 
virtual bool scrollVisibilityEnabled () const WT_CXX11ONLY(finaloverride)
 Returns whether scroll visibility detection is enabled for this widget. More...
 
virtual void setScrollVisibilityEnabled (bool enabled) WT_CXX11ONLY(finaloverride)
 Sets whether scroll visibility detection is enabled for this widget. More...
 
virtual int scrollVisibilityMargin () const WT_CXX11ONLY(finaloverride)
 Returns the margin around the viewport within which the widget is considered visible. More...
 
virtual void setScrollVisibilityMargin (int margin) WT_CXX11ONLY(finaloverride)
 Sets the margin around the viewport within which the widget is considered visible. More...
 
virtual Signal< bool > & scrollVisibilityChanged () WT_CXX11ONLY(finaloverride)
 Signal triggered when the scroll visibility of this widget changes. More...
 
virtual bool isScrollVisible () const WT_CXX11ONLY(finaloverride)
 Returns whether this widget is currently considered scroll visible. More...
 
virtual void setThemeStyleEnabled (bool enabled)
 Sets whether theme styling for a widget is enabled or disabled. More...
 
virtual bool isThemeStyleEnabled () const
 Returns whether this widget is currently styled by the chosen theme. More...
 
- Public Member Functions inherited from Wt::WWidget
virtual ~WWidget ()
 Destructor. More...
 
WWidgetparent () const
 Returns the parent widget. More...
 
virtual void removeChild (WObject *child)
 Removes a child object. More...
 
void setWidth (const WLength &width)
 Sets the width. More...
 
void setHeight (const WLength &height)
 Sets the height. More...
 
virtual void positionAt (const WWidget *widget, Orientation orientation=Vertical)
 Positions a widget next to another widget. More...
 
virtual void toggleStyleClass (const WString &styleClass, bool add, bool force=false)
 Toggles a CSS style class.
 
std::string jsRef () const
 Returns a JavaScript expression to the corresponding DOM node. More...
 
void setFocus ()
 Sets focus. More...
 
virtual void acceptDrops (const std::string &mimeType, const WString &hoverStyleClass=WString())
 Sets a mime type to be accepted for dropping. More...
 
virtual void stopAcceptDrops (const std::string &mimeType)
 Indicates that a mime type is no longer accepted for dropping. More...
 
virtual void setObjectName (const std::string &name)
 Sets an object name. More...
 
virtual void htmlText (std::ostream &out)
 Streams the (X)HTML representation. More...
 
bool isRendered () const
 Returns whether the widget is rendered. More...
 
void hide ()
 Hides the widget. More...
 
void animateHide (const WAnimation &animation)
 Hides the widget using an animation. More...
 
void show ()
 Shows the widget. More...
 
void animateShow (const WAnimation &animation)
 Shows the widget using an animation. More...
 
void enable ()
 Enables the widget. More...
 
void disable ()
 Disable thes widget. More...
 
bool layoutSizeAware () const
 Returns whether the widget is layout size aware. More...
 
- Public Member Functions inherited from Wt::WObject
 WObject (WObject *parent=0)
 Create a WObject with a given parent object. More...
 
virtual ~WObject ()
 Destructor. More...
 
virtual std::string objectName () const
 Returns the object name. More...
 
void resetLearnedSlots ()
 Resets learned stateless slot implementations. More...
 
template<class T >
void resetLearnedSlot (void(T::*method)())
 Resets a learned stateless slot implementation. More...
 
template<class T >
WStatelessSlot * implementStateless (void(T::*method)())
 Declares a slot to be stateless and learn client-side behaviour on first invocation. More...
 
template<class T >
WStatelessSlot * implementStateless (void(T::*method)(), void(T::*undoMethod)())
 Declares a slot to be stateless and learn client-side behaviour in advance. More...
 
void isNotStateless ()
 Marks the current function as not stateless. More...
 
template<class T >
WStatelessSlot * implementJavaScript (void(T::*method)(), const std::string &jsCode)
 Provides a JavaScript implementation for a method. More...
 
void addChild (WObject *child)
 Adds a child object. More...
 
const std::vector< WObject * > & children () const
 Returns the children.
 
WObjectparent () const
 Returns the parent object.
 

Protected Member Functions

void initializeGL ()
 Initialize the WebGL state when the widget is first shown. More...
 
void paintGL ()
 Update the client-side painting function. More...
 
void updateGL ()
 Update state set in initializeGL() More...
 
void resizeGL (int width, int height)
 Act on resize events. More...
 
- Protected Member Functions inherited from Wt::WGLWidget
virtual void render (WFlags< RenderFlag > flags)
 Renders the widget. More...
 
virtual void layoutSizeChanged (int width, int height)
 Virtual method that indicates a size change. More...
 
- Protected Member Functions inherited from Wt::WInteractWidget
virtual void propagateSetEnabled (bool enabled)
 Propagates that a widget was enabled or disabled through children. More...
 
- Protected Member Functions inherited from Wt::WWebWidget
virtual void enableAjax ()
 Progresses to an Ajax-enabled widget. More...
 
virtual WStatelessSlot * getStateless (Method method)
 On-demand stateless slot implementation. More...
 
- Protected Member Functions inherited from Wt::WWidget
void setLayoutSizeAware (bool sizeAware)
 Sets the widget to be aware of its size set by a layout manager. More...
 
 WWidget (WContainerWidget *parent=0)
 Creates a widget. More...
 
virtual void dropEvent (WDropEvent dropEvent)
 Handles a drop event. More...
 
virtual int boxPadding (Orientation orientation) const
 Returns the widget's built-in padding. More...
 
virtual int boxBorder (Orientation orientation) const
 Returns the widget's built-in border width. More...
 
void scheduleRender (WFlags< RepaintFlag > flags=0)
 Schedules rerendering of the widget. More...
 

Additional Inherited Members

- Public Types inherited from Wt::WGLWidget
- Public Types inherited from Wt::WObject
typedef void(WObject::* Method) ()
 Typedef for a WObject method without arguments.
 
- Static Public Member Functions inherited from Wt::WWebWidget
static WString escapeText (const WString &text, bool newlinesToo=false)
 Escape HTML control characters in the text, to display literally (deprecated). More...
 
static std::string & escapeText (std::string &text, bool newlinestoo=false)
 Escape HTML control characters in the text, to display literally (deprecated). More...
 
static bool removeScript (WString &text)
 Remove tags/attributes from text that are not passive (deprecated). More...
 
static std::string jsStringLiteral (const std::string &v, char delimiter= '\'')
 Turn a UTF8 encoded string into a JavaScript string literal. More...
 
- Static Public Member Functions inherited from Wt::WWidget
static WString tr (const char *key)
 Short hand for WString::tr() More...
 
- Static Protected Member Functions inherited from Wt::WObject
static WObjectsender ()
 Returns the sender of the current slot call. More...
 

Detailed Description

A 3D Cartesian chart.

The chart consists of a plotcube, which is always open on the front, and adapts to the data which is shown on the chart. The plotcube has three axes of type WAxis. Each of these can be manually configured as in the 2D case. The chart can be either a ScatterPlot or a CategoryChart. This influences how the data is positioned in relation to the x/y-axis. Gridlines can also be drawn on each of the plotcube-planes. The chart has a mouse-handler which allows rotation of the chart around the center of the plotcube. Zooming in and out is possible by scrolling.

Data that can be shown on the chart derives from WAbstractDataSeries3D. Multiple dataseries can be added to the chart using addDataSeries(). The color of the dataseries is by default determined by the colors of the WChartPalette. This way a separate color is assigned to each new dataseries. All rendering logic of the data is contained in the dataseries-classes and further styling is often possible there. For example, a WAbstractColorMap can be added to a dataseries, which will assign a color to datapoints based on their z-value. More information on this is found in the documentation of WAbstractDataSeries3D.

It is possible to assign a title to the chart. A legend can also be shown that lists the titles of all dataseries (unless disabled in the dataseries itself). The legend position and style can be configured. In addition to title and legend, a colormap-legend is shown for every dataseries which has a colormap enabled and indicates that it should be displayed on the chart.

Chart3DCombo.png
A scatterplot on the left, a category-chart on the right.

Constructor & Destructor Documentation

Wt::Chart::WCartesian3DChart::WCartesian3DChart ( WContainerWidget parent = 0)

Constructor.

Constructs a cartesian 3D chart, with the type set to ScatterPlot, a transparent background, a WStandardPalette::Muted palette and no gridlines.

Wt::Chart::WCartesian3DChart::WCartesian3DChart ( ChartType  type,
WContainerWidget parent = 0 
)

Constructor.

Construct a cartesian 3D chart with the specified type , a transparent background, a WStandardPalette::Muted palette and no gridlines.

Member Function Documentation

void Wt::Chart::WCartesian3DChart::addDataSeries ( WAbstractDataSeries3D dataseries)

Add a dataseries to the chart.

Ownership of the dataseries is transferred to the chart.

If the chart is of type ScatterPlot only numerical dataseries should be added and if it is of type CategoryChart only categorical dataseries should be added. If multiple categorical datasets are added, the axis-labels of the first dataseries will be used on the chart.

Note that a dataseries can only be added once.

See also
removeDataSeries()
const WColor& Wt::Chart::WCartesian3DChart::background ( ) const

Returns the background color used for this chart.

See also
setBackground()
WMatrix4x4 Wt::Chart::WCartesian3DChart::cameraMatrix ( ) const

Get the current camera-matrix.

The matrix represents the current view on the scene. It corresponds to a coordinate system where the chart's axes run from 0 to 1 in all three directions.

See also
setCameraMatrix()
const WPen& Wt::Chart::WCartesian3DChart::cubeLinesPen ( ) const

Returns a reference to the pen used for drawing the edges of the plotcube.

The width and color of the pen are used when drawing the edges of the plotcube

See also
setCubeLinesPen()
const std::vector<WAbstractDataSeries3D*>& Wt::Chart::WCartesian3DChart::dataSeries ( ) const

Returns all dataseries that were added to this chart.

See also
addDataSeries(), removeDataSeries()
const WPen& Wt::Chart::WCartesian3DChart::gridLinesPen ( ) const

Returns the pen used for drawing the gridlines.

See also
setGridLinesPen()
void Wt::Chart::WCartesian3DChart::initializeGL ( )
protectedvirtual

Initialize the WebGL state when the widget is first shown.

Specialized for chart rendering.

Reimplemented from Wt::WGLWidget.

void Wt::Chart::WCartesian3DChart::initLayout ( )

Initializes the chart layout.

This method must be called before any methods relating to the layout of the chart are called (eg. calling minimum() or maximum() on one of the axes). The method is also automatically called when the chart is rendered.

const WColor& Wt::Chart::WCartesian3DChart::intersectionLinesColor ( ) const

Gets the color of the intersection lines between surface charts.

See also
setIntersectionLinesColor()
const std::vector< WCartesian3DChart::IntersectionPlane > & Wt::Chart::WCartesian3DChart::intersectionPlanes ( ) const

Get the invisible planes with which intersections are drawn.

See also
setIntersectionPlanes()
bool Wt::Chart::WCartesian3DChart::isGridEnabled ( Plane  plane,
Axis  axis 
)

Returns whether the gridlines are enabled.

See also
setGridEnabled()
bool Wt::Chart::WCartesian3DChart::isIntersectionLinesEnabled ( ) const

Returns whether intersection lines are shown between surface charts.

See also
setIntersectionLinesEnabled()
bool Wt::Chart::WCartesian3DChart::isLegendEnabled ( ) const

Returns whether the legend is enabled.

See also
setLegendEnabled()
JavaScriptMatrix4x4 Wt::Chart::WCartesian3DChart::jsMatrix ( ) const

Get the current camera matrix as a JavaScriptMatrix4x4.

This JavaScriptMatrix4x4 can be used to implement a custom mouse handler using setClientSideMouseHandler().

See also
setCameraMatrix()
AlignmentFlag Wt::Chart::WCartesian3DChart::legendAlignment ( ) const

Returns the legend alignment.

See also
setLegendLocation()
WBrush Wt::Chart::WCartesian3DChart::legendBackground ( ) const

Returns the legend background brush.

See also
setLegendStyle()
WPen Wt::Chart::WCartesian3DChart::legendBorder ( ) const

Returns the legend border pen.

See also
setLegendStyle()
int Wt::Chart::WCartesian3DChart::legendColumns ( ) const

Returns the number of legend columns.

See also
setLegendColumns()
WLength Wt::Chart::WCartesian3DChart::legendColumnWidth ( ) const

Returns the legend column width.

See also
setLegendColumns()
WFont Wt::Chart::WCartesian3DChart::legendFont ( ) const

Returns the legend font.

See also
setLegendStyle()
Side Wt::Chart::WCartesian3DChart::legendSide ( ) const

Returns the legend side.

See also
setLegendLocation()
void Wt::Chart::WCartesian3DChart::paintGL ( )
protectedvirtual

Update the client-side painting function.

Specialized for chart rendering.

Reimplemented from Wt::WGLWidget.

WChartPalette* Wt::Chart::WCartesian3DChart::palette ( ) const

Returns the palette used for this chart.

See also
setPalette()
void Wt::Chart::WCartesian3DChart::removeDataSeries ( WAbstractDataSeries3D dataseries)

Removes a dataseries from a chart.

This removes the data from the chart and transfers ownership back. The data can then be added to another chart.

See also
addDataSeries()
void Wt::Chart::WCartesian3DChart::resize ( const WLength width,
const WLength height 
)
virtual

Resizes the widget.

Specifies a fixed size for this widget, setting CSS width and height properties. By default a widget has automatic width and height, which sets a size for the widget following CSS rules.

When the widget is not managed by a layout manager, the automatic (natural) size of a widget depends on whether they widget is a block or inline widget:

  • a block widget takes by default the width of the parent, and the height that it needs based on its contents
  • an inline widget takes the width and height that it needs based on its contents (possibly wrapping over multiple lines). The width and height of an inline widget cannot be changed (by the letter of CSS, although most browsers will react to it in varying ways).

When inserted in a layout manager, the size set will be used as a widget's preferred size, but the widget may be given a different size by the layout manager based on available space and stretch factors. The actual size given by a layout manager may be retrieved by making the widget "layout size aware", using setLayoutSizeAware(). If you have defined a "wtResize()" JavaScript method for the widget, then this method will also be called.

The default width and height of a widget is WLength::Auto.

See also
width(), height()

Reimplemented from Wt::WWebWidget.

void Wt::Chart::WCartesian3DChart::resizeGL ( int  width,
int  height 
)
protectedvirtual

Act on resize events.

Specialized for chart rendering.

Reimplemented from Wt::WGLWidget.

void Wt::Chart::WCartesian3DChart::setBackground ( const WColor background)

Sets the background color for this chart.

This sets the GL-clearcolor. The default is transparant, which will cause the background to have the color set in css.

void Wt::Chart::WCartesian3DChart::setCameraMatrix ( const WMatrix4x4 matrix)

Set the camera-matrix.

The viewpoint can be set with the camera-matrix. The chart is defined in the world coordinate system as a cube with axes from 0 to 1 in all three directions. Therefore the center of the cube is positioned at (0.5, 0.5, 0.5). The camera can be most easily position with the lookAt method of WMatrix4x4. A common use-case when manipulating the matrix is to translate the center to the origin and then rotate.

For example:

...
WMatrix4x4 camera;
camera.lookAt(0.5, 0.5, z, // camera position
0.5, 0.5, 0.5, // center of the scene
0, 1, 0); // up direction
camera.translate(0.5, 0.5, 0.5);
... // some rotations
camera.translate(-0.5, -0.5, -0.5);
void Wt::Chart::WCartesian3DChart::setCubeLinesPen ( const WPen pen)

Sets the pen used to draw the edges of the plotcube.

The default pen for drawing cubelines is a black pen of width 0.

Note: Only width and color of the pen are used, all other styling is ignored.

void Wt::Chart::WCartesian3DChart::setGridEnabled ( Plane  plane,
Axis  axis,
bool  enabled = true 
)

Enable/disable gridlines.

Enables or disables gridlines in the given plane, along the given axis. All gridlines are by default disabled.

void Wt::Chart::WCartesian3DChart::setGridLinesPen ( const WPen pen)

Sets the pen used for drawing the gridlines.

The default pen for drawing gridlines is a black pen of width 0.

See also
gridLinesPen()
void Wt::Chart::WCartesian3DChart::setIntersectionLinesEnabled ( bool  enabled = true)

Set whether intersection lines are shown between surface charts.

This is disabled by default.

void Wt::Chart::WCartesian3DChart::setIntersectionPlanes ( const std::vector< IntersectionPlane > &  intersectionPlanes)

Set the invisible planes with which intersections are drawn.

This plane is perpendicular to the given axis, and the intersection is shown in the given color.

Note that render times will take increasingly longer as you add more intersection planes.

void Wt::Chart::WCartesian3DChart::setLegendColumns ( int  columns,
const WLength columnWidth 
)

Configures the number of columns and columnwidth of the legend.

The default value is a single column, 100 pixels wide.

void Wt::Chart::WCartesian3DChart::setLegendEnabled ( bool  enabled)

Enables the legend.

The location of the legend can be configured using setLegendLocation(). Only series for which the legend is enabled are included in this legend.

The default value is false.

See also
setLegendLocation()
void Wt::Chart::WCartesian3DChart::setLegendLocation ( Side  side,
AlignmentFlag  alignment 
)

Configures the location of the legend.

The provided side can either be Wt::Left, Wt::Right, Wt::Top, Wt::Bottom and configures the side of the chart at which the legend is displayed.

The alignment specifies how the legend is aligned. This can be a horizontal alignment flag (Wt::AlignLeft, Wt::AlignCenter, or Wt::AlignRight), when the side is Bottom or Top, or a vertical alignment flag (Wt::AlignTop, Wt::AlignMiddle, or Wt::AlignBottom) when the side is Left or Right.

The default location is Wt::Right and Wt::AlignMiddle.

See also
setLegendEnabled()
void Wt::Chart::WCartesian3DChart::setLegendStyle ( const WFont font,
const WPen border,
const WBrush background 
)

Configures the legend decoration.

This configures the font, border and background for the legend.

The default font is a 10pt sans serif font (the same as the default axis label font), the default border is NoPen and the default background is NoBrush.

See also
setLegendEnabled()
void Wt::Chart::WCartesian3DChart::setPalette ( WChartPalette palette)

Sets the palette for this chart.

Ownership of the WChartPalette is transferred to the chart.

The given palette determines which color subsequent dataseries will have. If a dataseries has a colormap set, then the palette is not used for this data.

void Wt::Chart::WCartesian3DChart::setTitle ( const WString title)

Sets the title that is put on the chart.

The title is always put at the top of the chart and in the center.

See also
setTitleFont()
void Wt::Chart::WCartesian3DChart::setTitleFont ( const WFont titleFont)

Sets the font that is used to draw the title.

The default font is the default constructed WFont.

See also
setTitle()
void Wt::Chart::WCartesian3DChart::setType ( ChartType  type)

Sets the type of this chart.

Sets the type of this chart to either ScatterPlot (for drawing numerical data) or to CategoryChart (for drawing categorical data).

const WString& Wt::Chart::WCartesian3DChart::title ( ) const

Returns the title that is put at the top of this chart.

See also
setTitle(), setTitleFont()
const WFont& Wt::Chart::WCartesian3DChart::titleFont ( ) const

Returns the font used to draw the title.

See also
setTitle(), setTitleFont()
ChartType Wt::Chart::WCartesian3DChart::type ( ) const

Returns the type of this chart.

See also
setType()
void Wt::Chart::WCartesian3DChart::updateGL ( )
protectedvirtual

Update state set in initializeGL()

Specialized for chart rendering.

Reimplemented from Wt::WGLWidget.


Generated on Mon Sep 4 2017 for the C++ Web Toolkit (Wt) by doxygen 1.8.11