28 bool create(
int type,
const std::string name,
const std::string plug_name, LWChanGroupID group);
36 VParm(
int type,
const std::string name, std::string plug_name, LWChanGroupID group = 0,
double v = 0.0);
37 VParm(
int type,
const std::string name, std::string plug_name, LWChanGroupID group,
Vector3d &v);
38 VParm(
int type,
const std::string name, std::string plug_name,
ChannelGroup& group,
double v = 0.0);
50 LWVParmID
ID() {
return vparmID;}
59 (*
globPtr->setState)(vparmID, 0);
75 void Set(
const double d)
85 void Set(
const LWDVector v)
87 x = v[0];
y = v[1];
z = v[2];
90 void Set(
const LWFVector v)
92 x = v[0];
y = v[1];
z = v[2];
102 return static_cast<float>(
x);
106 return (
globPtr->getState(vparmID) & LWVPSF_ENV) == LWVPSF_ENV;
129 LWChanGroupID groupID;
131 bool destroy_on_exit;
135 destroy_on_exit(false)
139 ChannelGroup(
const char *name, LWChanGroupID parent = 0,
bool destroy =
true)
140 : groupID(0), destroy_on_exit(destroy)
146 : groupID(0), destroy_on_exit(true)
152 : groupID(id), destroy_on_exit(false)
157 void Create(
const char *name, LWChanGroupID parent,
bool destroy =
true)
161 destroy_on_exit = destroy;
166 if (groupID && destroy_on_exit)
168 envf->destroyGroup(groupID);
177 LWChanGroupID
getID()
const {
return groupID;}
178 LWChanGroupID
nextGroup( LWChanGroupID parent, LWChanGroupID group) {
return globPtr->nextGroup(parent, group);}
179 LWChannelID
nextChannel( LWChanGroupID parent, LWChannelID chan) {
return globPtr->nextChannel(parent, chan);}
189 LWChanGroupID return_group;
190 char *channel_name =
new char[strlen(name) + 10];
192 strcpy(channel_name, name);
195 bool chan_found =
false;
197 LWChanGroupID grp =
nextGroup(parent, 0);
199 while (!chan_found && (grp))
201 if (strcmp(channel_name,
groupName(grp)) == 0)
209 sprintf(channel_name,
"%s(%i)", name, i++);
213 return_group = envf->createGroup(parent, channel_name);
214 delete[] channel_name;
225 if ( name ==
globPtr->channelName( chan ))
227 return globPtr->channelEnvelope( chan );