58 typedef SoBaseKit inherited;
63 SO_KIT_CATALOG_ENTRY_HEADER(viewport);
65 SO_KIT_CATALOG_ENTRY_HEADER(position);
68 SO_KIT_CATALOG_ENTRY_HEADER(camera);
69 SO_KIT_CATALOG_ENTRY_HEADER(
texture);
80 SO_KIT_CATALOG_ENTRY_HEADER(image);
94 static void initClass(
void);
114 void setImageTransparency(
const float transparency = 0.0f);
115 void useTextureNotImage(
const SbBool
onoff);
116 void setColorCB(uint32_t (*colorCB)(
double,
void*),
void *
userdata =
NULL);
117 void setColorCB(uint32_t (*colorCB)(
double));
119 void clearTicks(
void);
120 void addSmallTick(
double nval);
121 void addBigTick(
double nval,
double tickvalue,
const SbString * discretestring =
NULL);
122 void addBigTick(
double nval,
const SbString &
string,
const SbString * discretestring =
NULL);
124 void setDiscreteMode(
const SbBool
onoff);
125 void addDiscreteColor(
double uppernval, uint32_t color);
126 void addDiscreteColor(
double uppernval);
128 void clearData(
void);
129 void enableImage(
const SbBool
onoff);
131 float getLegendWidth(
void)
const;
133 typedef SbString SoNumberFormatCB(
const double number,
void *
closure);
134 void setNumberFormatCallback(SoNumberFormatCB *
cb,
void *
closure);
138 void setTickAndLinesColor(
const SbColor & color,
const float transparency = 0.0f);
139 void setTextColor(
const SbColor & color,
const float transparency = 0.0f);
140 void setPosition(
const SbVec2s & pos);
141 void setBackgroundColor(
const SbColor & color,
const float transparency = 0.0f);
142 void enableBackground(
const SbBool
onoff);
149 virtual void search(SoSearchAction *
action);
157 virtual SbBool affectsState(
void)
const;
164 void recalcSize(
SoState * state);
165 void initBackground(
const SbBool
force =
FALSE);
166 void initTextureImage(
void);
167 void initImage(
void);
168 void reallyInitImage(
unsigned char * data,
unsigned char *
rowdata =
NULL);
169 void fillImageAlpha(
void);
175 void renderString(
const char *
str,
int xpos,
int ypos);
177 void setSwitchValue(
const char *
part,
const int value);
179 class LegendKitP * pimpl;
180 friend class LegendKitP;