9 #ifndef __MOCAPSTREAMROKOKOHDK_H_INCLUDED__
10 #define __MOCAPSTREAMROKOKOHDK_H_INCLUDED__
25 14043,
"",
"",
"", 0, 0, 32768,
26 {
true,
false,
false,
false,
false,
false,
true,
false,
false,
false}}
36 return UTmakeUnique<MocapStreamRokokoHDK>(opts);
41 bool &parse_incomplete)
override;
50 const char*
label()
const override {
return "Rokoko Studio - HDK"; }
54 const char*
name()
const override {
return "rokoko_hdk"; }
57 void computeSkeletonTransforms();
103 void resetOccurances()
105 for (
auto &actor : myActors)
107 actor.myOccurances = 0;
113 if (myNameToIdx.contains(name))
115 Actor &actor = myActors(myNameToIdx[name]);
116 actor.myPoints.clear();
121 new_actor.myName =
name;
123 myActors.append(new_actor);
124 myNameToIdx[
name] = myActors.entries()-1;
126 return &myActors(myActors.entries()-1);
131 if (myNameToIdx.contains(name))
132 return &myActors(myNameToIdx[name]);
139 if (!myNameToIdx.contains(name))
143 myActors.removeIndex(removed_idx);
145 for (
auto it = myNameToIdx.begin(); !it.atEnd(); ++it)
147 if (it->second > removed_idx)
154 Actor &operator()(
exint i)
158 if (i >= myActors.size())
159 i = myActors.size()-1;
168 ActorList mySkeletons;
bool parsePacket(UT_StringHolder &packet, fpreal packet_time, bool &parse_incomplete) override
std::unique_ptr< T, Deleter > UT_UniquePtr
A smart pointer for unique ownership of dynamically allocated objects.
UT_UniquePtr< MC_MocapStreamImpl > clone(const ServerOptions &opts) override
const char * name() const override
GLuint const GLchar * name
void removeSkeleton(const UT_StringHolder &name) override
Removes the stored data for a skeleton.
void buildSkeleton(GU_Detail *gdp, UT_StringHolder name) override
void updateJoints(GU_Detail *gdp, const MC_MocapStreamCookParms &cookparms, const MC_MocapStreamCookParms &prev_cookparms) override
const char * label() const override
MocapStreamRokokoHDK(const ServerOptions &opts=ServerOptions{14043,"","","", 0, 0, 32768,{true, false, false, false, false, false, true, false, false, false}})
~MocapStreamRokokoHDK() override