11 #ifndef __GA_SaveMap__
12 #define __GA_SaveMap__
39 #define GA_SAVEMAP_END_TOKEN ":end"
93 lazyMakeVertexRange();
106 lazyMakeVertexRange();
123 return getVertexIndex(offset);
125 return getPointIndex(offset);
127 return getPrimitiveIndex(offset);
134 UT_ASSERT(0 &&
"Invalid attribute owner");
142 bool getDefaultedBool(
const char *
name,
bool defvalue)
const;
147 const char *defvalue)
const;
151 bool getSecondaryIndices(
GA_Offset primary_offset,
161 {
return getDefaultedBool(
"geo:saveinfo",
true); }
165 {
return getDefaultedString(
"info:artist", s, NULL); }
168 {
return getDefaultedString(
"info:hostname", s, NULL); }
171 {
return getDefaultedString(
"info:date", s, NULL); }
174 {
return getDefaultedString(
"info:software", s, NULL); }
179 {
return getDefaultedBool(
"info:savebounds",
true); }
184 {
return getDefaultedBool(
"info:saveprimcounts",
true); }
189 {
return getDefaultedBool(
"info:savevolumesummary",
true); }
194 {
return getDefaultedBool(
"info:saveattributesummary",
true); }
206 return getDefaultedBool(
"info:saverenderattributeranges",
213 {
return getDefaultedBool(
"info:savegroupsummary",
true); }
219 return getDefaultedBool(
"geo:savegroups",
true) &&
220 getDefaultedBool(
"geo:savepointgroups",
true);
226 return getDefaultedBool(
"geo:savegroups",
true) &&
227 getDefaultedBool(
"geo:saveprimitivegroups",
true);
233 return getDefaultedBool(
"geo:savegroups",
true) &&
234 getDefaultedBool(
"geo:savevertexgroups",
true);
240 return getDefaultedBool(
"geo:savegroups",
true) &&
241 getDefaultedBool(
"geo:saveedgegroups",
true);
247 return getDefaultedBool(
"geo:savegroups",
true) &&
248 getDefaultedBool(
"geo:savebreakpointgroups",
true);
256 {
return getDefaultedBool(
"geo:ignoreattributescope",
false); }
263 const char *default_mask=
"*")
const
265 return getDefaultedString(
266 "geo:attributesavemask", storage, default_mask);
273 const char *default_mask=
"*")
const
275 return getDefaultedString(
276 "geo:groupsavemask", storage, default_mask);
296 void lazyMakeVertexRange()
const;
297 void reallyMakeVertexRange();
bool optionSaveInfo() const
"bool geo:saveinfo" Whether to save info block
A class to manage an ordered array which has fixed offset handles.
bool optionIgnoreAttributeScope() const
Used to pass options and map offset values during saving.
const GA_Range & getVertexRange() const
Return the iterator for the vertices to be saved.
const GA_Detail & getDetail() const
Get the geometry being loaded.
getFileOption("OpenEXR:storage") storage
const char * optionDate(UT_String &s) const
"string info:date" Current date (default: Y-m-d T)
GA_Index getIndex(GA_Offset offset, GA_AttributeOwner o) const
Return the save index associated with an element.
bool optionSavePrimitiveGroups() const
JSON reader class which handles parsing of JSON or bJSON files.
void setFileVersion(const char *v)
During the loading process, the file version may be set.
bool optionSaveVolumeSummary() const
Information necessary to lookup a secondary primitive.
const GA_Range & getPointRange() const
Return the iterator for the points to be saved.
bool optionSavePrimCount() const
A range of elements in an index-map.
bool optionSaveBounds() const
const GA_Range & getGlobalRange() const
Return the detail iterator.
bool optionSaveAttributeSummary() const
const char * optionSoftware(UT_String &s) const
"string info:software" Software (and version)
bool optionSaveVertexGroups() const
GLuint const GLchar * name
const char * optionGroupSaveMask(UT_String &storage, const char *default_mask="*") const
GA_Size GA_Index
Define the strictness of GA_Offset/GA_Index.
bool optionSaveBreakpointGroups() const
bool optionSavePointGroups() const
const char * getFileVersion() const
const char * optionAttributeSaveMask(UT_String &storage, const char *default_mask="*") const
bool optionSaveRenderAttributeRanges() const
bool optionSaveGroupSummary() const
const char * optionArtistName(UT_String &s) const
"string info:artist" String containing the artist's name
const GA_SaveOptions & getOptions() const
Container class for all geometry.
const GA_Range & getPrimitiveRange() const
Return the iterator for the primitives to be saved.
const char * optionHostname(UT_String &s) const
"string info:hostname" String containing the host name
const GA_Range & getRange(GA_AttributeOwner i) const
Return an arbitrary iterator based on the owner type.
bool optionSaveEdgeGroups() const