Commit 08a77121 authored by ba yaye-awa's avatar ba yaye-awa
Browse files

add functions to handle .obj file

parent f6a6bfc5
......@@ -38,6 +38,9 @@ class DataBlock:
# What is the PNG files root directory
__PNGFilePrefix = ""
# What is the PNG files root directory
__OBJFilePrefix = ""
# What are the palette names
__palette_names = ["Greys", "RdYlBu", "hsv", "gist_ncar", "gist_rainbow", "gist_gray", "Spectral", "jet", "plasma", "inferno", "magma", "afmhot", "gist_heat"]
......@@ -95,6 +98,10 @@ class DataBlock:
@classmethod
def setPNGFilePrefix(cls, PNGFilePrefix):
DataBlock.__PNGFilePrefix = PNGFilePrefix
@classmethod
def setOBJFilePrefix(cls, OBJFilePrefix):
DataBlock.__OBJFilePrefix = OBJFilePrefix
@classmethod
def getFITSFilePrefix(cls):
......@@ -103,6 +110,10 @@ class DataBlock:
@classmethod
def getPNGFilePrefix(cls):
return DataBlock.__PNGFilePrefix
@classmethod
def getOBJFilePrefix(cls):
return DataBlock.__OBJFilePrefix
@classmethod
def getRenderingCapabilities(cls):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment