Package gaiasky.util
Class CatalogInfo
java.lang.Object
gaiasky.util.CatalogInfo
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanbooleanintdoubledoublefloat[]floatlongbooleanlong -
Constructor Summary
ConstructorsConstructorDescriptionCatalogInfo(String name, String description, String source, CatalogInfo.CatalogInfoType type, float hlSizeFactor, FadeNode object) -
Method Summary
Modifier and TypeMethodDescriptionfloat[]voidhighlight(boolean hl)Highlight the dataset using the dataset's own color indexbooleanbooleanvoidUnloads and removes the catalog described by this catalog infovoidsetColor(float r, float g, float b, float a)voidsetHlAllVisible(boolean allVisible)voidsetHlColor(float[] hlColor)voidsetHlColormap(int cmapIndex, IAttribute cmapAttribute, double cmapMin, double cmapMax)voidsetHlSizeFactor(float hlSizeFactor)voidsetVisibility(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 -
hlCmapAttribute
-
hlCmapMin
public double hlCmapMin -
hlCmapMax
public double hlCmapMax -
filter
-
type
-
object
-
-
Constructor Details
-
CatalogInfo
public CatalogInfo(String name, String description, String source, CatalogInfo.CatalogInfoType type, float hlSizeFactor, FadeNode object)
-
-
Method Details
-
setVisibility
public void setVisibility(boolean visibility) -
isVisible
public boolean isVisible() -
setColor
public void setColor(float r, float g, float b, float a) -
setHlColor
public void setHlColor(float[] hlColor) -
getHlColor
public float[] getHlColor() -
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
-
isRegular
public boolean isRegular()- Returns:
- True if this is a catalog of stars or particles, false otherwise (star clusters)
-