Package gaiasky.util
Class CatalogInfo
- java.lang.Object
-
- gaiasky.util.CatalogInfo
-
public class CatalogInfo extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CatalogInfo.CatalogInfoType
-
Field Summary
Fields Modifier and Type Field Description java.lang.String
description
Filter
filter
boolean
highlighted
boolean
hlAllVisible
IAttribute
hlCmapAttribute
int
hlCmapIndex
double
hlCmapMax
double
hlCmapMin
float[]
hlColor
float
hlSizeFactor
java.time.Instant
loadDateUTC
java.lang.String
name
FadeNode
object
boolean
plainColor
java.lang.String
source
CatalogInfo.CatalogInfoType
type
-
Constructor Summary
Constructors Constructor Description CatalogInfo(java.lang.String name, java.lang.String description, java.lang.String source, CatalogInfo.CatalogInfoType type, float hlSizeFactor, FadeNode object)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description float[]
getHlColor()
void
highlight(boolean hl)
Highlight the dataset using the dataset's own color indexboolean
isRegular()
boolean
isVisible()
void
removeCatalog()
Unloads and removes the catalog described by this catalog infovoid
setColor(float r, float g, float b, float a)
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 Detail
-
name
public java.lang.String name
-
description
public java.lang.String description
-
source
public java.lang.String source
-
loadDateUTC
public java.time.Instant 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
public IAttribute hlCmapAttribute
-
hlCmapMin
public double hlCmapMin
-
hlCmapMax
public double hlCmapMax
-
filter
public Filter filter
-
type
public CatalogInfo.CatalogInfoType type
-
object
public FadeNode object
-
-
Constructor Detail
-
CatalogInfo
public CatalogInfo(java.lang.String name, java.lang.String description, java.lang.String source, CatalogInfo.CatalogInfoType type, float hlSizeFactor, FadeNode object)
-
-
Method Detail
-
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
public void setHlColormap(int cmapIndex, IAttribute cmapAttribute, double cmapMin, double cmapMax)
-
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)
-
-