public abstract class BaseRenderableSeries3D extends com.scichart.charting.visuals.renderableSeries.RenderableSeriesCore implements IRenderableSeries3D, com.scichart.charting.model.dataSeries.IDataSeriesObserver
Modifier and Type | Class and Description |
---|---|
protected static class |
BaseRenderableSeries3D.InvalidateMeshCallback |
protected static class |
BaseRenderableSeries3D.InvalidateMetadataCallback |
Modifier and Type | Field and Description |
---|---|
protected com.scichart.core.framework.SmartPropertyInteger |
diffuseColorProperty |
protected BaseRenderableSeries3D.InvalidateMeshCallback |
invalidateMeshCallback |
protected BaseRenderableSeries3D.InvalidateMetadataCallback |
invalidateMetadataCallback |
protected com.scichart.core.framework.SmartPropertyInteger |
selectedVertexColorProperty |
protected com.scichart.core.framework.SmartPropertyFloat |
shininessProperty |
protected com.scichart.core.framework.SmartPropertyInteger |
specularColorProperty |
protected com.scichart.core.framework.SmartPropertyFloat |
specularStrengthProperty |
protected static java.lang.String |
TAG |
Modifier | Constructor and Description |
---|---|
protected |
BaseRenderableSeries3D(ISeriesRenderPassData3D currentRenderPassData,
BaseRenderableSeriesSceneEntity3D sceneEntity)
Creates a new instance of
BaseRenderableSeries3D class |
Modifier and Type | Method and Description |
---|---|
void |
applyThemeProvider(com.scichart.charting.themes.IThemeProvider themeProvider) |
void |
attachTo(com.scichart.core.IServiceContainer services) |
protected boolean |
canUpdateRenderPassData(RenderPassState3D renderPassState)
Checks if current renderable series can update render pass data
|
void |
detach() |
android.content.Context |
getContext() |
ISeriesRenderPassData3D |
getCurrentRenderPassData()
Returns the current
ISeriesRenderPassData3D instance which is used for render pass |
IDataSeries3D |
getDataSeries()
Gets the
IDataSeries3D associated with this series |
com.scichart.charting.utility.IReadWriteLock |
getDataSeriesLock()
Gets the
IReadWriteLock instance to lock data series |
int |
getDiffuseColor()
Gets the material diffuse color
|
IMetadataProvider3D |
getMetadataProvider()
Gets the
IMetadataProvider3D instance associated with this series |
ISciChartSurface3D |
getParentSurface()
Gets the parent surface that this instance is associated with
|
BasePointMarker3D |
getPointMarker()
Gets the
BasePointMarker3D for this renderable series |
com.scichart.charting.utility.IReadWriteLock |
getRenderPassDataLock()
Gets the
IReadWriteLock instance to lock render pass data |
BaseRenderableSeriesSceneEntity3D |
getSceneEntity()
Gets the scene entity that represent this RenderableSeries3D.
|
int |
getSelectedVertexColor()
Gets the selected color for vertices selected with
IRenderableSeries3D.performSelection(boolean, HitTestInfo3D) |
ISeriesInfo3DProvider |
getSeriesInfoProvider()
Gets the
ISeriesInfo3DProvider instance associated with this series. |
float |
getShininess()
Gets a shininees from 0.0f - 1024.0f which defines how much the surface material is shining
small values tend to have more shines overall the entire surface, think like rubber
higher values will mean more focused shines, like plastic
a default value of 64.0 is used
|
int |
getSpecularColor()
Gets the material specular color
|
float |
getSpecularStrength()
Gets a specular strength which defines how bright and visible is the shining spot
|
boolean |
hasDataSeries()
Gets whether this renderable series has data series to draw
|
void |
hitTest(HitTestInfo3D hitTestResult,
float x,
float y)
Performs a hit-test at the specific point (x,y coordinate on the parent
IRenderableSeriesArea |
void |
hitTest(HitTestInfo3D hitTestResult,
long selectionId)
Performs a hit-test at the specific point (x,y coordinate on the parent
IRenderableSeriesArea |
protected void |
internalUpdate(RenderPassState3D renderPassState)
Updates this renderable series instances
|
protected abstract void |
internalUpdateRenderPassData(ISeriesRenderPassData3D renderPassDataToUpdate,
IDataSeries3D<?,?,?> dataSeries,
int updateFlags)
Updates the current render pass data using the data series
|
protected abstract void |
internalUpdateRenderPassMetadata(ISeriesRenderPassData3D renderPassDataToUpdate,
IMetadataProvider3D metadataProvider)
Updates the current render pass data using data provided by
getMetadataProvider() |
void |
invalidateElement() |
void |
invalidateMeshes()
Asynchronously requests invalidate of meshes provided by
getSceneEntity() and then invalidates this renderable series |
void |
invalidateMetadata()
Asynchronously requests invalidate of metadata provided by
IMetadataProvider3D and then invalidates this renderable series |
protected abstract boolean |
isOfValidType(IDataSeries3D dataSeries)
Checks whether the data series instance is valid for this series
|
protected boolean |
isUpdateOfRenderPassDataRequired(com.scichart.charting.numerics.coordinateCalculators.ICoordinateCalculator xCoordCalc,
com.scichart.charting.numerics.coordinateCalculators.ICoordinateCalculator yCoordCalc,
com.scichart.charting.numerics.coordinateCalculators.ICoordinateCalculator zCoordCalc,
int updateFlags)
Checks whether this renderable series need to update its render pass data
|
boolean |
isValidForDrawing() |
boolean |
isValidForUpdate() |
void |
onDataSeriesChanged(com.scichart.charting.model.dataSeries.IDataSeriesCore dataSeries,
int dataSeriesUpdate) |
void |
setDataSeries(IDataSeries3D dataSeries)
Sets the
IDataSeries3D associated with this series |
void |
setDiffuseColor(int diffuseColor)
Sets the material diffuse color
|
void |
setMetadataProvider(IMetadataProvider3D metadataProvider)
Set the
IMetadataProvider3D instance associated with this series |
void |
setPointMarker(BasePointMarker3D pointMarker)
Sets the
BasePointMarker3D for this renderable series |
void |
setSelectedVertexColor(int selectedVertexColor)
Sets the selected color for vertices selected with
IRenderableSeries3D.performSelection(boolean, HitTestInfo3D) |
void |
setSeriesInfoProvider(ISeriesInfo3DProvider seriesInfoProvider)
Sets the
ISeriesInfo3DProvider instance associated with this series. |
void |
setShininess(float shininess)
Sets a shininees from 0.0f - 1024.0f which defines how much the surface material is shining
small values tend to have more shines overall the entire surface, think like rubber
higher values will mean more focused shines, like plastic
a default value of 64.0 is used
|
void |
setSpecularColor(int specularColor)
Sets the material specular color
|
void |
setSpecularStrength(float specularStrength)
Sets a specular strength which defines how bright and visible is the shining spot
|
void |
update(RenderPassState3D renderPassState)
Updates the state of this
IUpdatable3D before rendering |
protected static void |
updateFillMetadata(IMetadataProvider3D metadataProvider,
com.scichart.core.model.IntegerValues fillColorsToUpdate,
int defaultFill,
int pointsCount) |
protected static void |
updateMeshColors(IMetadataProvider3D metadataProvider,
com.scichart.core.model.IntegerValues meshColorsToUpdate) |
protected static void |
updatePointMetadata(IMetadataProvider3D metadataProvider,
com.scichart.core.model.IntegerValues pointColorsToUpdate,
com.scichart.core.model.FloatValues pointScalesToUpdate,
int defaultColor,
float defaultScale,
int pointsCount) |
void |
updateRenderPassData(IAxis3D xAxis,
IAxis3D yAxis,
IAxis3D zAxis,
RenderPassState3D renderPassState)
Called during render pass and updates current render pass data
|
protected static void |
updateStrokeMetadata(IMetadataProvider3D metadataProvider,
com.scichart.core.model.IntegerValues strokeColorsToUpdate,
int defaultStroke,
int pointsCount) |
addIsSelectedChangeListener, addIsVisibleChangeListener, decrementSuspend, getIsSelected, getIsSuspended, getIsVisible, getOpacity, getSelectedSeriesStyle, getServices, getUpdateSuspenderCount, isAttached, removeIsSelectedChangeListener, removeIsVisibleChangeListener, resumeUpdates, setIsSelected, setIsVisible, setOpacity, setSelectedSeriesStyle, suspendUpdates
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
deselectAll, getSeriesColor, performSelection, performSelection
addIsSelectedChangeListener, addIsVisibleChangeListener, getIsSelected, getIsVisible, getOpacity, getSelectedSeriesStyle, removeIsSelectedChangeListener, removeIsVisibleChangeListener, setIsSelected, setIsVisible, setOpacity, setSelectedSeriesStyle
protected static final java.lang.String TAG
protected final BaseRenderableSeries3D.InvalidateMeshCallback invalidateMeshCallback
protected final BaseRenderableSeries3D.InvalidateMetadataCallback invalidateMetadataCallback
protected final com.scichart.core.framework.SmartPropertyFloat shininessProperty
protected final com.scichart.core.framework.SmartPropertyFloat specularStrengthProperty
protected final com.scichart.core.framework.SmartPropertyInteger specularColorProperty
protected final com.scichart.core.framework.SmartPropertyInteger diffuseColorProperty
protected final com.scichart.core.framework.SmartPropertyInteger selectedVertexColorProperty
protected BaseRenderableSeries3D(ISeriesRenderPassData3D currentRenderPassData, BaseRenderableSeriesSceneEntity3D sceneEntity)
BaseRenderableSeries3D
classcurrentRenderPassData
- The render pass data instancesceneEntity
- The scene entity associated with this seriespublic final void setDataSeries(IDataSeries3D dataSeries)
IDataSeries3D
associated with this seriessetDataSeries
in interface IRenderableSeries3D
dataSeries
- New data seriespublic void onDataSeriesChanged(com.scichart.charting.model.dataSeries.IDataSeriesCore dataSeries, int dataSeriesUpdate)
onDataSeriesChanged
in interface com.scichart.charting.model.dataSeries.IDataSeriesObserver
protected abstract boolean isOfValidType(IDataSeries3D dataSeries)
dataSeries
- The data series instance to checkpublic final IDataSeries3D getDataSeries()
IDataSeries3D
associated with this seriesgetDataSeries
in interface IRenderableSeries3D
public final boolean hasDataSeries()
hasDataSeries
in interface IRenderableSeries3D
public final com.scichart.charting.utility.IReadWriteLock getDataSeriesLock()
IReadWriteLock
instance to lock data seriesgetDataSeriesLock
in interface IRenderableSeries3D
IReadWriteLock
instance to lock data seriespublic com.scichart.charting.utility.IReadWriteLock getRenderPassDataLock()
IReadWriteLock
instance to lock render pass datagetRenderPassDataLock
in interface IRenderableSeries3D
IReadWriteLock
instance to lock render pass datapublic final BasePointMarker3D getPointMarker()
BasePointMarker3D
for this renderable seriesgetPointMarker
in interface IRenderableSeries3D
public final void setPointMarker(BasePointMarker3D pointMarker)
BasePointMarker3D
for this renderable seriessetPointMarker
in interface IRenderableSeries3D
pointMarker
- New point markerpublic final IMetadataProvider3D getMetadataProvider()
IMetadataProvider3D
instance associated with this seriesgetMetadataProvider
in interface IRenderableSeries3D
IMetadataProvider3D
instancepublic final void setMetadataProvider(IMetadataProvider3D metadataProvider)
IMetadataProvider3D
instance associated with this seriessetMetadataProvider
in interface IRenderableSeries3D
metadataProvider
- The new IMetadataProvider3D
instancepublic final ISeriesInfo3DProvider getSeriesInfoProvider()
ISeriesInfo3DProvider
instance associated with this series.getSeriesInfoProvider
in interface IRenderableSeries3D
ISeriesInfo3DProvider
instancepublic final void setSeriesInfoProvider(ISeriesInfo3DProvider seriesInfoProvider)
ISeriesInfo3DProvider
instance associated with this series.setSeriesInfoProvider
in interface IRenderableSeries3D
seriesInfoProvider
- New ISeriesInfo3DProvider
instancepublic final void setShininess(float shininess)
IRenderableSeries3D
setShininess
in interface IRenderableSeries3D
shininess
- The new shininess valuepublic final float getShininess()
IRenderableSeries3D
getShininess
in interface IRenderableSeries3D
public final void setSpecularStrength(float specularStrength)
IRenderableSeries3D
setSpecularStrength
in interface IRenderableSeries3D
specularStrength
- The new specular strengthpublic final float getSpecularStrength()
IRenderableSeries3D
getSpecularStrength
in interface IRenderableSeries3D
public final void setDiffuseColor(int diffuseColor)
IRenderableSeries3D
setDiffuseColor
in interface IRenderableSeries3D
diffuseColor
- The new diffuse colorpublic final int getDiffuseColor()
IRenderableSeries3D
getDiffuseColor
in interface IRenderableSeries3D
public final void setSpecularColor(int specularColor)
IRenderableSeries3D
setSpecularColor
in interface IRenderableSeries3D
specularColor
- The new specular colorpublic final int getSpecularColor()
IRenderableSeries3D
getSpecularColor
in interface IRenderableSeries3D
public final void setSelectedVertexColor(int selectedVertexColor)
IRenderableSeries3D.performSelection(boolean, HitTestInfo3D)
selectedVertexColor
- The new selected vertex colorpublic final int getSelectedVertexColor()
IRenderableSeries3D.performSelection(boolean, HitTestInfo3D)
public final ISeriesRenderPassData3D getCurrentRenderPassData()
ISeriesRenderPassData3D
instance which is used for render passgetCurrentRenderPassData
in interface IRenderableSeries3D
public void attachTo(com.scichart.core.IServiceContainer services)
attachTo
in interface com.scichart.core.framework.IAttachable
attachTo
in class com.scichart.charting.visuals.renderableSeries.RenderableSeriesCore
public void detach()
detach
in interface com.scichart.core.framework.IAttachable
detach
in class com.scichart.charting.visuals.renderableSeries.RenderableSeriesCore
public void invalidateElement()
invalidateElement
in interface com.scichart.core.framework.IInvalidatableElement
public final void invalidateMetadata()
IMetadataProvider3D
and then invalidates this renderable seriesinvalidateMetadata
in interface IRenderableSeries3D
public final void invalidateMeshes()
getSceneEntity()
and then invalidates this renderable seriespublic final BaseRenderableSeriesSceneEntity3D getSceneEntity()
getSceneEntity
in interface IRenderableSeries3D
public final android.content.Context getContext()
getContext
in interface com.scichart.core.framework.IContextProvider
public final ISciChartSurface3D getParentSurface()
getParentSurface
in interface ISciChartSurface3DProvider
public boolean isValidForUpdate()
isValidForUpdate
in interface com.scichart.charting.visuals.renderableSeries.IRenderableSeriesCore
public boolean isValidForDrawing()
isValidForDrawing
in interface com.scichart.charting.visuals.renderableSeries.IRenderableSeriesCore
public final void updateRenderPassData(IAxis3D xAxis, IAxis3D yAxis, IAxis3D zAxis, RenderPassState3D renderPassState)
updateRenderPassData
in interface IRenderableSeries3D
xAxis
- The XAxis instance that this IRenderableSeries3D
is associated withyAxis
- The YAxis instance that this IRenderableSeries3D
is associated withzAxis
- The ZAxis instance that this IRenderableSeries3D
is associated withrenderPassState
- The RenderPassState3D
used in current render passprotected boolean canUpdateRenderPassData(RenderPassState3D renderPassState)
renderPassState
- The RenderPassState3D
used in current render passprotected boolean isUpdateOfRenderPassDataRequired(com.scichart.charting.numerics.coordinateCalculators.ICoordinateCalculator xCoordCalc, com.scichart.charting.numerics.coordinateCalculators.ICoordinateCalculator yCoordCalc, com.scichart.charting.numerics.coordinateCalculators.ICoordinateCalculator zCoordCalc, int updateFlags)
xCoordCalc
- The current coordinate calculator for XAxisyCoordCalc
- The current coordinate calculator for YAxiszCoordCalc
- The current coordinate calculator for ZAxisupdateFlags
- The update flags used to update render pass datainternalUpdateRenderPassData
should be calledDataSeries3DUpdate
protected abstract void internalUpdateRenderPassData(ISeriesRenderPassData3D renderPassDataToUpdate, IDataSeries3D<?,?,?> dataSeries, int updateFlags)
renderPassDataToUpdate
- The render pass data to updatedataSeries
- The data series associated with this renderable series instanceupdateFlags
- The update flags used to update render pass dataDataSeries3DUpdate
protected abstract void internalUpdateRenderPassMetadata(ISeriesRenderPassData3D renderPassDataToUpdate, IMetadataProvider3D metadataProvider)
getMetadataProvider()
renderPassDataToUpdate
- The render pass data to updatemetadataProvider
- The metadata provider associated with this renderable series instancepublic final void update(RenderPassState3D renderPassState)
IUpdatable3D
before renderingupdate
in interface IUpdatable3D
renderPassState
- The RenderPassState3D
used in current render passprotected void internalUpdate(RenderPassState3D renderPassState)
renderPassState
- The RenderPassState
for this render passpublic void applyThemeProvider(com.scichart.charting.themes.IThemeProvider themeProvider)
applyThemeProvider
in interface com.scichart.charting.themes.IThemeable
public final void hitTest(HitTestInfo3D hitTestResult, float x, float y)
IRenderableSeriesArea
hitTest
in interface IRenderableSeries3D
hitTestResult
- The HitTestInfo3D
instance where result of hit-test should be storedx
- The x coordinate in pixels relative to parent IRenderableSeriesArea
y
- The y coordinate in pixels relative to parent IRenderableSeriesArea
public final void hitTest(HitTestInfo3D hitTestResult, long selectionId)
IRenderableSeriesArea
hitTest
in interface IRenderableSeries3D
hitTestResult
- The HitTestInfo3D
instance where result of hit-test should be storedselectionId
- The identifier - an encoded 32-bit Id which combines vertex and mesh IDprotected static void updatePointMetadata(IMetadataProvider3D metadataProvider, com.scichart.core.model.IntegerValues pointColorsToUpdate, com.scichart.core.model.FloatValues pointScalesToUpdate, int defaultColor, float defaultScale, int pointsCount)
protected static void updateStrokeMetadata(IMetadataProvider3D metadataProvider, com.scichart.core.model.IntegerValues strokeColorsToUpdate, int defaultStroke, int pointsCount)
protected static void updateFillMetadata(IMetadataProvider3D metadataProvider, com.scichart.core.model.IntegerValues fillColorsToUpdate, int defaultFill, int pointsCount)
protected static void updateMeshColors(IMetadataProvider3D metadataProvider, com.scichart.core.model.IntegerValues meshColorsToUpdate)