bufferView Class Reference

glTF buffer view - provides a view/slice of the glTF buffer More...

Inheritance diagram for bufferView:
[legend]
Collaboration diagram for bufferView:
[legend]

Public Member Functions

 bufferView ()
 Default construct. More...
 
 bufferView (const word &name)
 Construct with name. More...
 
 ~bufferView ()=default
 Destructor. More...
 
label & buffer () noexcept
 Return the buffer index. More...
 
label & byteOffset () noexcept
 Return the byte offset. More...
 
label & byteLength () noexcept
 Return the byte length. More...
 
label & target () noexcept
 Return the target. More...
 
void write (Ostream &os) const
 Write. More...
 
void operator= (const bufferView &bv)
 
- Public Member Functions inherited from base
 base ()
 Default construct. More...
 
 base (const word &name)
 Construct with name. More...
 
 ~base ()=default
 Destructor. More...
 
label & id () noexcept
 Return access to the ID. More...
 
const wordname () const noexcept
 Return const access to the name. More...
 
void write (Ostream &os) const
 Write. More...
 
void operator= (const base &gltf)
 

Protected Attributes

label buffer_
 Buffer index. More...
 
label byteOffset_
 Byte offset. More...
 
label byteLength_
 Byte length. More...
 
label target_
 Target. More...
 
- Protected Attributes inherited from base
word name_
 Name. More...
 
label id_
 ID. More...
 

Detailed Description

glTF buffer view - provides a view/slice of the glTF buffer

Note
Implements the glTF v2 specification
Source files

Definition at line 63 of file foamGltfBufferView.H.

Constructor & Destructor Documentation

◆ bufferView() [1/2]

Default construct.

Definition at line 32 of file foamGltfBufferView.C.

◆ bufferView() [2/2]

bufferView ( const word name)
explicit

Construct with name.

Definition at line 42 of file foamGltfBufferView.C.

◆ ~bufferView()

~bufferView ( )
default

Destructor.

Member Function Documentation

◆ buffer()

Foam::label & buffer ( )
noexcept

Return the buffer index.

Definition at line 54 of file foamGltfBufferView.C.

◆ byteOffset()

Foam::label & byteOffset ( )
noexcept

Return the byte offset.

Definition at line 60 of file foamGltfBufferView.C.

◆ byteLength()

Foam::label & byteLength ( )
noexcept

Return the byte length.

Definition at line 66 of file foamGltfBufferView.C.

◆ target()

Foam::label & target ( )
noexcept

Return the target.

Definition at line 72 of file foamGltfBufferView.C.

◆ write()

void write ( Ostream os) const

Write.

Definition at line 78 of file foamGltfBufferView.C.

References Foam::indent(), Foam::nl, os(), and base::write().

Referenced by Foam::operator<<().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator=()

void operator= ( const bufferView bv)

Definition at line 94 of file foamGltfBufferView.C.

References bufferView::buffer_, bufferView::byteLength_, bufferView::byteOffset_, base::operator=(), and bufferView::target_.

Here is the call graph for this function:

Member Data Documentation

◆ buffer_

label buffer_
protected

Buffer index.

Definition at line 72 of file foamGltfBufferView.H.

Referenced by bufferView::operator=().

◆ byteOffset_

label byteOffset_
protected

Byte offset.

Definition at line 75 of file foamGltfBufferView.H.

Referenced by bufferView::operator=().

◆ byteLength_

label byteLength_
protected

Byte length.

Definition at line 78 of file foamGltfBufferView.H.

Referenced by bufferView::operator=().

◆ target_

label target_
protected

Target.

Definition at line 81 of file foamGltfBufferView.H.

Referenced by bufferView::operator=().


The documentation for this class was generated from the following files: