Package gaiasky.util
Class CatalogInfo
java.lang.Object
gaiasky.util.CatalogInfo
Saves the metadata on a particular catalog or dataset loaded into Gaia Sky, and implements
some common operations like highlighting.
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptioncom.badlogic.ashley.core.Entity
boolean
boolean
float
int
double
double
float[]
float
long
boolean
long
-
Constructor Summary
ConstructorDescriptionCatalogInfo
(String name, String description, String source, CatalogInfo.CatalogInfoSource type, float hlSizeFactor) CatalogInfo
(String name, String description, String source, CatalogInfo.CatalogInfoSource 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[]
boolean
void
highlight
(boolean hl) Highlight the dataset using the dataset's own color indexboolean
boolean
boolean
boolean
boolean
isVisible
(boolean attributeValue) void
Unloads and removes the catalog described by this catalog infovoid
setColor
(float r, float g, float b, float a) void
setEntity
(com.badlogic.ashley.core.Entity entity) void
setHlAllVisible
(boolean allVisible) void
setHlColor
(float[] hlColor) void
setHlColormap
(int cmapIndex, IAttribute cmapAttribute, double cmapMin, double cmapMax) void
setHlSizeFactor
(float hlSizeFactor) void
setVisibility
(boolean visibility)
-
Field Details
-
name
-
description
-
source
-
nParticles
public long nParticles -
sizeBytes
public long sizeBytes -
loadDateUTC
-
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
-
entity
public com.badlogic.ashley.core.Entity entity
-
-
Constructor Details
-
CatalogInfo
public CatalogInfo(String name, String description, String source, CatalogInfo.CatalogInfoSource type, float hlSizeFactor, com.badlogic.ashley.core.Entity entity) -
CatalogInfo
public CatalogInfo(String name, String description, String source, CatalogInfo.CatalogInfoSource type, float hlSizeFactor)
-
-
Method Details
-
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.
-
isParticleSet
public boolean isParticleSet() -
isStarSet
public boolean isStarSet() -
getCt
Gets the component type of the model object linked to this catalog.- Returns:
- The component type.
-