All Classes Namespaces Functions Variables Enumerations Enumerator Modules Pages
Classes | Public Types | Public Member Functions | List of all members
Table Class Referenceabstract
Inheritance diagram for Table:
SafeChangeBroadcaster DiscreteTable MidiTable SampleLookupTable


struct  GraphPoint

Public Types

enum  DataType

Public Member Functions

 Table ()
virtual int getTableSize () const =0
void setGraphPoints (const Array< GraphPoint > &newGraphPoints, int numPoints)
virtual String exportData () const
virtual void restoreData (const String &savedString)
int getNumGraphPoints () const
GraphPoint getGraphPoint (int pointIndex) const
void createPath (Path &normalizedPath) const
virtual void fillLookUpTable ()
virtual float * getWritePointer ()=0
- Public Member Functions inherited from SafeChangeBroadcaster
void sendSynchronousChangeMessage ()
void addChangeListener (SafeChangeListener *listener)
void removeChangeListener (SafeChangeListener *listener)
void removeAllChangeListeners ()
void sendChangeMessage (const String &=String())
void sendAllocationFreeChangeMessage ()

Detailed Description

A table is a data structure that allows editing of a look up table with a TableEditor. It uses a list of graph points to create a path which is rendered to a float array of the desired size.

Constructor & Destructor Documentation

Table ( )

Creates a new table of the specified type.

Member Function Documentation

void createPath ( Path &  normalizedPath) const

This generates a normalized path from the GraphPoint array.

This is called by the editor to draw the path under the DragPoints.

virtual String exportData ( ) const

Exports the data as base64 encoded String. This is not a ValueTree (so RestorableObject is no base class from Table), because it needs to be embedded in an XML attribute

See also
void fillLookUpTable ( )

Fills the look up table with the graph points generated from calculateGraphPoints()

Don't call this too often as it is quite heavy!

GraphPoint getGraphPoint ( int  pointIndex) const

Get a copy of the graph point at pointIndex.

int getNumGraphPoints ( ) const

Returns the number of graph points

virtual int getTableSize ( ) const
pure virtual

Overwrite this and return the table size.

virtual float* getWritePointer ( )
pure virtual

Overwrite this and return a pointer to the data array.

virtual void restoreData ( const String &  savedString)

Restores the data from a base64 encoded String.

See also
void setGraphPoints ( const Array< GraphPoint > &  newGraphPoints,
int  numPoints 

Sets the GraphPoints. If you need to refresh the internal table, you also have to call fillLookUpTable().

©2017 HISE. This documentation is autogenerated from the HISE source code using Doxygen.