Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

template<typename Colour>
class Enlighten::MaterialComponentBuffer

MaterialComponentBuffer type interface.

Typedefs

NameDescription
GenericColourBuffer< ColourType > BaseType

Concrete type of the base class.

Colour ColourType

Colour type stored in this buffer.

C ColourType

Colour type.

BaseType::ConstIteratorType ConstIteratorType

ConstIterator type.

ConstIterator< ColourType > ConstIteratorType

Const Iterator type.

BaseType::IteratorType IteratorType

Iterator type.

Iterator< ColourType > IteratorType

Iterator type.

Functions

NameDescription
Begin()

Return a const iterator at the beginning of this buffer.

Begin()

Return an iterator at the beginning of this buffer.

Begin()

Returns an iterator to the first value in the buffer.

Begin()

Returns a const iterator to the first value in the buffer.

ByteSwapMembers()

Endian swap the members of the header.

ByteSwapPayload(Geo::EConvertEndianMode)

Endian swap the buffer contents.

CalculateBufferSize(Geo::s32)

Returns the size of the buffer in bytes.

CalculateBufferSize(const InputWorkspace *)

Calculate the size of the buffer for a given InputWorkspace.

Clear()

Reset the contents of this buffer to zero/black.

Clear()

Reset the contents of this buffer to zero/black.

ConvertEndian(Geo::EConvertEndianMode)

Endian swap the buffer.

ConvertEndian(Geo::EConvertEndianMode)

Endian swap the buffer.

Copy(const GenericColourBuffer< ColourType > &)

Copy values from another buffer.

Copy(const MaterialComponentBuffer &)

Copy values from another buffer.

Create(const InputWorkspace *, void *)

Create a buffer for a given workspace in the supplied memory.

Create(const MaterialComponentBuffer &, void *)

Create a duplicated buffer from the source, in the supplied memory.

Create(Geo::GeoGuid, Geo::s32, void *)

Creates a buffer in memory.

Create(void *, const GenericColourBuffer &)

Creates a copy in memory.

End()

Returns a const iterator to the last+1 value in the buffer.

End()

Return an iterator at the end of this buffer.

End()

Return a const iterator at the end of this buffer.

End()

Returns an iterator to the last+1 value in the buffer.

GenericColourBuffer(Geo::GeoGuid, Geo::s32, Geo::s32)

Main constructor.

GenericColourBuffer(const GenericColourBuffer &)

Copy constructor.

GetNumValues()

Returns the number of values in this buffer.

GetNumValues()

Returns the number of values in this buffer.

GetSize()

Returns the size of this buffer in bytes.

GetSize()

Returns the size of this buffer in bytes.

GetSystemId()

Returns the guid of the system that this buffer correlates to.

GetSystemId()

Returns the guid of the system that this buffer correlates to.

Variables

NameDescription
Geo::u32 m_NumValues

Number of clusters.

Geo::GeoGuid m_ObjectId

Id of the system/cube map that these lighting values apply to.

Geo::u32 m_Padding[2]

Unused padding. Explicitly declared so can be zero-initialised.

Geo::s32 m_PayloadOffset

Byte offset from beginning of the header to the colour data.


Anchor
a116d5df12b20a3cccf79388c3deccf67
a116d5df12b20a3cccf79388c3deccf67

ConstIteratorType Enlighten::GenericColourBuffer< C >::Begin

...

public: ConstIteratorType Begin() const

...

Return a const iterator at the beginning of this buffer.


Anchor
a14922bf85d50b80144312acd087171f6
a14922bf85d50b80144312acd087171f6

IteratorType Enlighten::GenericColourBuffer< C >::Begin

...

public: IteratorType Begin()

...

Return an iterator at the beginning of this buffer.


Anchor
a4f63d31d138e1856f1d0a44a125dca06
a4f63d31d138e1856f1d0a44a125dca06

IteratorType Enlighten::MaterialComponentBuffer< Colour >::Begin

...

public: IteratorType Begin()

...

Returns an iterator to the first value in the buffer.


Anchor
ae330b360a0739bcbbf3c54860991118e
ae330b360a0739bcbbf3c54860991118e

ConstIteratorType Enlighten::MaterialComponentBuffer< Colour >::Begin

...

public: ConstIteratorType Begin() const

...

Returns a const iterator to the first value in the buffer.


Anchor
a5161114444b3241242fff60ee92c2d83
a5161114444b3241242fff60ee92c2d83

void Enlighten::GenericColourBuffer< ColourType >::ByteSwapMembers

...

protected: void ByteSwapMembers()

...

Endian swap the members of the header.


Anchor
a1fb21eb1d7b1692018648a65b60b7841
a1fb21eb1d7b1692018648a65b60b7841

void Enlighten::GenericColourBuffer< ColourType >::ByteSwapPayload

...

protected: void ByteSwapPayload
(
    Geo::EConvertEndianMode mode
)

...

Endian swap the buffer contents.


Anchor
acbc90f2d4237fa80ffa50dd22b638d78
acbc90f2d4237fa80ffa50dd22b638d78

Geo::u32 Enlighten::GenericColourBuffer< ColourType >::CalculateBufferSize

...

public: Geo::u32 CalculateBufferSize
(
    Geo::s32 numValues
)

...

Returns the size of the buffer in bytes.


Anchor
a3527fd90ec2231df2f396180bc1d1a49
a3527fd90ec2231df2f396180bc1d1a49

static Geo::u32 Enlighten::MaterialComponentBuffer< Colour >::CalculateBufferSize

...

public: Geo::u32 CalculateBufferSize
(
    const InputWorkspace * inputWorkspace
)

...

Calculate the size of the buffer for a given InputWorkspace.


Anchor
ae370297e9dabfcaca29858cc1ecd17a2
ae370297e9dabfcaca29858cc1ecd17a2

void Enlighten::GenericColourBuffer< ColourType >::Clear

...

public: void Clear()

...

Reset the contents of this buffer to zero/black.


Anchor
a7680a811b5032815b4f36b4d86c6c7d9
a7680a811b5032815b4f36b4d86c6c7d9

void Enlighten::MaterialComponentBuffer< Colour >::Clear

...

public: void Clear()

...

Reset the contents of this buffer to zero/black.


Anchor
ae952acbca49e15b49c85ccacb34526e3
ae952acbca49e15b49c85ccacb34526e3

void Enlighten::GenericColourBuffer< ColourType >::ConvertEndian

...

public: void ConvertEndian
(
    Geo::EConvertEndianMode mode
)

...

Endian swap the buffer.


Anchor
a6a5f1be43ae6dc665a063d3b6993a59f
a6a5f1be43ae6dc665a063d3b6993a59f

void Enlighten::MaterialComponentBuffer< Colour >::ConvertEndian

...

public: void ConvertEndian
(
    Geo::EConvertEndianMode mode
)

...

Endian swap the buffer.


Anchor
ac4353f59c6ef9a59ab89e0b6225539ad
ac4353f59c6ef9a59ab89e0b6225539ad

bool Enlighten::GenericColourBuffer< ColourType >::Copy

...

public: bool Copy
(
    const GenericColourBuffer< ColourType > & source
)

...

Copy values from another buffer.


Anchor
a66a4a7f82231ef4eaf014cbe21b8f216
a66a4a7f82231ef4eaf014cbe21b8f216

bool Enlighten::MaterialComponentBuffer< Colour >::Copy

...

public: bool Copy
(
    const MaterialComponentBuffer & source
)

...

Copy values from another buffer.


Anchor
af4f1822d50f731e6b65810db9ab03f0e
af4f1822d50f731e6b65810db9ab03f0e

static MaterialComponentBuffer* Enlighten::MaterialComponentBuffer< Colour >::Create

...

public: MaterialComponentBuffer * Create
(
    const InputWorkspace * inputWorkspace,
    void * memory
)

...

Create a buffer for a given workspace in the supplied memory.


Anchor
af2ee36381802f39e6e781c216ba77a42
af2ee36381802f39e6e781c216ba77a42

static MaterialComponentBuffer* Enlighten::MaterialComponentBuffer< Colour >::Create

...

public: MaterialComponentBuffer * Create
(
    const MaterialComponentBuffer & source,
    void * memory
)

...

Create a duplicated buffer from the source, in the supplied memory.


Anchor
a870e7b1c3da794e63f04bbfb0bb5327f
a870e7b1c3da794e63f04bbfb0bb5327f

GenericColourBuffer< ColourType > * Enlighten::GenericColourBuffer< ColourType >::Create

...

public: GenericColourBuffer * Create
(
    Geo::GeoGuid objectId,
    Geo::s32 numValues,
    void * memory
)

...

Creates a buffer in memory.


Anchor
a3532f15dd4d9a990a759ee969fb1ab08
a3532f15dd4d9a990a759ee969fb1ab08

GenericColourBuffer< ColourType > * Enlighten::GenericColourBuffer< ColourType >::Create

...

public: GenericColourBuffer * Create
(
    void * memory,
    const GenericColourBuffer & source
)

...

Creates a copy in memory.


Anchor
ad95f3a220b15f2d5c1709ea24913571b
ad95f3a220b15f2d5c1709ea24913571b

ConstIteratorType Enlighten::MaterialComponentBuffer< Colour >::End

...

public: ConstIteratorType End() const

...

Returns a const iterator to the last+1 value in the buffer.


Anchor
ab0863a3b7f66adc29d3b3564e2680da8
ab0863a3b7f66adc29d3b3564e2680da8

IteratorType Enlighten::GenericColourBuffer< C >::End

...

public: IteratorType End()

...

Return an iterator at the end of this buffer.


Anchor
a6a8463d308c6fb5bb88490bfec4f8b29
a6a8463d308c6fb5bb88490bfec4f8b29

ConstIteratorType Enlighten::GenericColourBuffer< C >::End

...

public: ConstIteratorType End() const

...

Return a const iterator at the end of this buffer.


Anchor
a1202e52afce783858aedf4037c4e03b2
a1202e52afce783858aedf4037c4e03b2

IteratorType Enlighten::MaterialComponentBuffer< Colour >::End

...

public: IteratorType End()

...

Returns an iterator to the last+1 value in the buffer.


Anchor
ac29ba5670df87a048e62dc1b5dd9cebe
ac29ba5670df87a048e62dc1b5dd9cebe

Enlighten::GenericColourBuffer< ColourType >::GenericColourBuffer

...

protected: GenericColourBuffer
(
    Geo::GeoGuid objectId,
    Geo::s32 numValues,
    Geo::s32 payloadOffset
)

...

Main constructor.


Anchor
a01a60560c1d66a5bd25b5e29ee3cf468
a01a60560c1d66a5bd25b5e29ee3cf468

Enlighten::GenericColourBuffer< ColourType >::GenericColourBuffer

...

protected: GenericColourBuffer
(
    const GenericColourBuffer & source
)

...

Copy constructor.


Anchor
a548e9ecedd4672a397a5aaa17d518983
a548e9ecedd4672a397a5aaa17d518983

Geo::u32 Enlighten::MaterialComponentBuffer< Colour >::GetNumValues

...

public: Geo::u32 GetNumValues() const

...

Returns the number of values in this buffer.


Anchor
ac984b10695a20e712ef18aec2693278c
ac984b10695a20e712ef18aec2693278c

Geo::u32 Enlighten::GenericColourBuffer< C >::GetNumValues

...

public: Geo::u32 GetNumValues() const

...

Returns the number of values in this buffer.


Anchor
aa121e6ff48ac907d360a31be3a476e53
aa121e6ff48ac907d360a31be3a476e53

size_t Enlighten::MaterialComponentBuffer< Colour >::GetSize

...

public: size_t GetSize() const

...

Returns the size of this buffer in bytes.


Anchor
af65bc5fb5e02ac7ffad01fccee14de2f
af65bc5fb5e02ac7ffad01fccee14de2f

size_t Enlighten::GenericColourBuffer< C >::GetSize

...

public: size_t GetSize() const

...

Returns the size of this buffer in bytes.


Anchor
a96d1e3f74ff030aaae58ce7b3a3e01be
a96d1e3f74ff030aaae58ce7b3a3e01be

Geo::GeoGuid Enlighten::MaterialComponentBuffer< Colour >::GetSystemId

...

public: Geo::GeoGuid GetSystemId() const

...

Returns the guid of the system that this buffer correlates to.


Anchor
a80b9054b106b15fdf62cdd630f963ff2
a80b9054b106b15fdf62cdd630f963ff2

Geo::GeoGuid Enlighten::GenericColourBuffer< C >::GetSystemId

...

public: Geo::GeoGuid GetSystemId() const

...

Returns the guid of the system that this buffer correlates to.