35 #ifndef IE_CORE_PDCPARTICLEREADER_H
36 #define IE_CORE_PDCPARTICLEREADER_H
38 #include "IECore/Export.h"
39 #include "IECore/ParticleReader.h"
40 #include "IECore/VectorTypedData.h"
61 static bool canRead(
const std::string &fileName );
63 unsigned long numParticles()
override;
64 void attributeNames( std::vector<std::string> &names )
override;
65 DataPtr readAttribute(
const std::string &name )
override;
70 std::string positionPrimVarName()
override;
74 static const ReaderDescription<PDCParticleReader> m_readerDescription;
89 std::streampos position;
95 std::ifstream *m_iStream;
96 std::string m_streamFileName;
103 std::map<std::string, Record> attributes;
107 void readElements( T *buffer, std::streampos pos,
unsigned long n )
const;
110 const Data * idAttribute();
111 DataPtr m_idAttribute;
119 #endif // IE_CORE_PDCPARTICLEREADER_H
Definition: PDCParticleReader.h:50
Definition: ParticleReader.h:52
T reverseBytes(const T &x)
Returns a copy of x with reversed byte order.
Definition: ByteOrder.h:77
This namespace contains all components of the core library.
Definition: AddSmoothSkinningInfluencesOp.h:43