Class DatasetCard
java.lang.Object
gaiasky.util.DatasetCard
Saves the metadata on a particular catalog or dataset loaded into Gaia Sky, and implements
some common operations like highlighting.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enum -
Field Summary
FieldsModifier and TypeFieldDescriptionDataset description.Dataset key.com.badlogic.ashley.core.Entitybooleanbooleanfloatintdoubledoublefloat[]floatDataset name.longbooleanlongDataset source string. -
Constructor Summary
ConstructorsConstructorDescriptionDatasetCard(String dsKey, String name, String description, String source, DatasetCard.DatasetSourceType type, float hlSizeFactor) DatasetCard(String dsKey, String name, String description, String source, DatasetCard.DatasetSourceType type, float hlSizeFactor, com.badlogic.ashley.core.Entity entity) -
Method Summary
Modifier and TypeMethodDescriptiongetCt()Gets the component type of the model object linked to this catalog.float[]booleanvoidhighlight(boolean hl) Highlight the dataset using the dataset's own color indexbooleanbooleanbooleanbooleanbooleanbooleanisVisible(boolean attributeValue) voidUnloads and removes the catalog described by this catalog infovoidsetColor(float r, float g, float b, float a) voidsetDatasetKey(String key) Sets the dataset key and initializes the dataset reference, if any.voidsetEntity(com.badlogic.ashley.core.Entity entity) voidsetHlAllVisible(boolean allVisible) voidsetHlColor(float[] hlColor) voidsetHlColormap(int cmapIndex, IAttribute cmapAttribute, double cmapMin, double cmapMax) voidsetHlSizeFactor(float hlSizeFactor) voidsetVisibility(boolean visibility)
-
Field Details
-
dsKey
Dataset key. A dataset may have multiple cards, in this case all point to the same dataset. -
name
Dataset name. -
description
Dataset description. -
source
Dataset source string. -
nParticles
public long nParticles -
sizeBytes
public long sizeBytes -
loadDateUTC
-
dd
-
highlighted
public boolean highlighted -
plainColor
public boolean plainColor -
hlColor
public float[] hlColor -
hlSizeFactor
public float hlSizeFactor -
hlAllVisible
public boolean hlAllVisible -
hlCmapIndex
public int hlCmapIndex -
hlCmapAlpha
public float hlCmapAlpha -
hlCmapAttribute
-
hlCmapMin
public double hlCmapMin -
hlCmapMax
public double hlCmapMax -
filter
-
type
-
objectType
-
entity
public com.badlogic.ashley.core.Entity entity
-
-
Constructor Details
-
DatasetCard
public DatasetCard(String dsKey, String name, String description, String source, DatasetCard.DatasetSourceType type, float hlSizeFactor, com.badlogic.ashley.core.Entity entity) -
DatasetCard
public DatasetCard(String dsKey, String name, String description, String source, DatasetCard.DatasetSourceType type, float hlSizeFactor)
-
-
Method Details
-
setDatasetKey
Sets the dataset key and initializes the dataset reference, if any. -
setEntity
public void setEntity(com.badlogic.ashley.core.Entity entity) -
setVisibility
public void setVisibility(boolean visibility) -
isVisible
public boolean isVisible() -
isVisible
public boolean isVisible(boolean attributeValue) -
setColor
public void setColor(float r, float g, float b, float a) -
getHlColor
public float[] getHlColor() -
setHlColor
public void setHlColor(float[] hlColor) -
setHlColormap
-
setHlSizeFactor
public void setHlSizeFactor(float hlSizeFactor) -
setHlAllVisible
public void setHlAllVisible(boolean allVisible) -
removeCatalog
public void removeCatalog()Unloads and removes the catalog described by this catalog info -
highlight
public void highlight(boolean hl) Highlight the dataset using the dataset's own color index- Parameters:
hl- Whether to highlight or not
-
isHighlightable
public boolean isHighlightable()- Returns:
- True if this is a highlightable catalog, false otherwise.
-
hasParticleAttributes
public boolean hasParticleAttributes()- Returns:
- True if this catalog's particles have attributes (they are stars), false otherwise.
-
isEntityParticleSet
public boolean isEntityParticleSet() -
isEntityStarSet
public boolean isEntityStarSet() -
isMission
public boolean isMission() -
getCt
Gets the component type of the model object linked to this catalog.- Returns:
- The component type.
-