public class Chart extends Object
Chart
is a convenient object that gather all components required to
render a 3d scene for plotting.Modifier and Type | Field and Description |
---|---|
protected ICanvas |
canvas |
protected com.jogamp.opengl.GLCapabilities |
capabilities |
protected ArrayList<AbstractCameraController> |
controllers |
static Quality |
DEFAULT_QUALITY |
static String |
DEFAULT_WINDOWING_TOOLKIT |
protected IChartComponentFactory |
factory |
protected Coord3d |
previousViewPointFree |
protected Coord3d |
previousViewPointProfile |
protected Coord3d |
previousViewPointTop |
protected Quality |
quality |
protected ChartScene |
scene |
protected View |
view |
protected String |
windowingToolkit |
Constructor and Description |
---|
Chart() |
Chart(IChartComponentFactory components,
Quality quality) |
Chart(IChartComponentFactory factory,
Quality quality,
String windowingToolkit) |
Chart(IChartComponentFactory factory,
Quality quality,
String windowingToolkit,
com.jogamp.opengl.GLCapabilities capabilities) |
Chart(Quality quality) |
Chart(Quality quality,
String windowingToolkit) |
Chart(String windowingToolkit) |
public static Quality DEFAULT_QUALITY
public static String DEFAULT_WINDOWING_TOOLKIT
protected IChartComponentFactory factory
protected Quality quality
protected com.jogamp.opengl.GLCapabilities capabilities
protected String windowingToolkit
protected ChartScene scene
protected View view
protected ICanvas canvas
protected Coord3d previousViewPointFree
protected Coord3d previousViewPointTop
protected Coord3d previousViewPointProfile
protected ArrayList<AbstractCameraController> controllers
public Chart()
public Chart(Quality quality)
public Chart(String windowingToolkit)
public Chart(IChartComponentFactory components, Quality quality)
public Chart(IChartComponentFactory factory, Quality quality, String windowingToolkit)
public Chart(IChartComponentFactory factory, Quality quality, String windowingToolkit, com.jogamp.opengl.GLCapabilities capabilities)
public Chart black()
public Chart white()
public Chart view2d()
public Chart add(AbstractDrawable drawable)
public void clear()
public void pauseAnimator()
public void resumeAnimator()
public void startAnimator()
public void stopAnimator()
public void dispose()
public void render()
public com.jogamp.opengl.util.texture.TextureData screenshot()
public com.jogamp.opengl.util.texture.TextureData screenshot(File file) throws IOException
IOException
public void updateProjectionsAndRender()
public View newView()
public ICameraMouseController addMouseController()
public ICameraKeyController addKeyController()
public IScreenshotKeyController addScreenshotKeyController()
public void addController(AbstractCameraController controller)
AbstractCameraController
to this Chart
. Warning:
the Chart
is not the owner of the controller. Disposing the chart
thus just unregisters the controllers, but does not handle stopping and
disposing controllers.public void removeController(AbstractCameraController controller)
protected void clearControllerList()
public List<AbstractCameraController> getControllers()
public void addDrawable(AbstractDrawable drawable)
public void addDrawable(AbstractDrawable drawable, boolean updateViews)
public void addDrawable(List<? extends AbstractDrawable> drawables, boolean updateViews)
public void addDrawable(List<? extends AbstractDrawable> drawables)
public void removeDrawable(AbstractDrawable drawable)
public void removeDrawable(AbstractDrawable drawable, boolean updateViews)
public Light addLight(Coord3d position, Color ambiant, Color diffuse, Color specular, float radius)
public View view()
public View getView()
public ChartScene getScene()
public ICanvas getCanvas()
public IAxeLayout getAxeLayout()
public void setAxeDisplayed(boolean status)
public IChartComponentFactory getFactory()
public String getWindowingToolkit()
public void setViewPoint(Coord3d viewPoint)
public Coord3d getViewPoint()
public void setViewMode(ViewPositionMode mode)
public ViewPositionMode getViewMode()
public void setScale(Scale scale, boolean notify)
public void setScale(Scale scale)
public Scale getScale()
public float flip(float y)
public com.jogamp.opengl.GLCapabilities getCapabilities()
Copyright © 2016. All rights reserved.