35 #ifndef ANA_COMMANDS_CSETOBJECTPALETTE_H
36 #define ANA_COMMANDS_CSETOBJECTPALETTE_H
54 const std::string & palname1,
55 bool min1flg =
false,
float min1 = 0,
56 bool max1flg =
false,
float max1 = 1,
57 const std::string & palname2 =
"",
59 float min2 = 0,
bool max2flg =
false,
61 const std::string & mixMethod =
"",
62 bool mixFacflg =
false,
63 float linMixFactor = 0.5,
64 const std::string & pal1Dmapping =
"",
65 bool absmode =
false,
int sizex = -2,
66 int sizey = -2,
bool zeroc1flg =
false,
67 bool zeroc1 =
false,
bool zeroc2flg =
false,
68 bool zeroc2 =
false );
71 virtual std::string
name()
const {
return(
"SetObjectPalette" ); }
78 std::set<AObject *> _objL;
81 std::string _pal1Dmapping ;
86 std::string _mixMethod;
103 static bool initSyntax();
The abstract base class for commands.
The abstract base class for usual commands.
Serializer is a helper class for pointer serialization.
Set an AObjectPalette to objects.
SetObjectPaletteCommand(const std::set< AObject * > &, const std::string &palname1, bool min1flg=false, float min1=0, bool max1flg=false, float max1=1, const std::string &palname2="", bool min2flg=false, float min2=0, bool max2flg=false, float max2=1, const std::string &mixMethod="", bool mixFacflg=false, float linMixFactor=0.5, const std::string &pal1Dmapping="", bool absmode=false, int sizex=-2, int sizey=-2, bool zeroc1flg=false, bool zeroc1=false, bool zeroc2flg=false, bool zeroc2=false)
virtual void write(Tree &com, Serializer *ser) const
Print the guts of a command into a Tree given as parent.
virtual void doit()
Do a command.
virtual ~SetObjectPaletteCommand()
virtual std::string name() const
Return the unique name of a class of commands.
Context for commands processor readers (APipeReader etc)