CMS 3D CMS Logo

FileExportPlugin.py
Go to the documentation of this file.
2  option_types={} #option: (name, type, default, extra...)
3  plugin_name=''
4  file_types=()
5  def __init__(self):
6  self.options={}
7  for k,v in self.option_types.items():
8  self.options[k]=v[2]
9 
10  def pluginName(self):
11  return self.plugin_name
12 
13  def fileTypes(self):
14  return self.file_types
15 
16  def listOptions(self):
17  return self.option_types
18 
19  def setOption(self,option,value):
20  check = self.checkOption(option,value)
21  if check==True:
22  self.options[option]=value
23  else:
24  raise check
25 
26  def getOption(self,option):
27  return self.options.get(option,None)
28 
29  def checkOption(self,option,value):
30  return True
31 
32  def export(self,data,filename,filetype):
33  raise NotImplemented
def checkOption(self, option, value)
def export(self, data, filename, filetype)
def setOption(self, option, value)