Loading...
Searching...
No Matches
bufferView Class Reference

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

#include <foamGltfBufferView.H>

Inheritance diagram for bufferView:
Collaboration diagram for bufferView:

Public Member Functions

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

Protected Attributes

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

Detailed Description

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

Note
Implements the glTF v2 specification
Source files

Definition at line 59 of file foamGltfBufferView.H.

Constructor & Destructor Documentation

◆ bufferView() [1/2]

bufferView ( )

Default construct.

Definition at line 25 of file foamGltfBufferView.C.

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

Referenced by ~bufferView().

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

◆ bufferView() [2/2]

bufferView ( const word & name)
explicit

Construct with name.

Definition at line 35 of file foamGltfBufferView.C.

References base::base(), buffer_, byteLength_, byteOffset_, base::name(), and target_.

Here is the call graph for this function:

◆ ~bufferView()

~bufferView ( )
default

Destructor.

References bufferView(), byteLength(), byteOffset(), Foam::noexcept, os(), target(), and write().

Here is the call graph for this function:

Member Function Documentation

◆ buffer()

Foam::label & buffer ( )
noexcept

Return the buffer index.

Definition at line 47 of file foamGltfBufferView.C.

References buffer_, and Foam::noexcept.

◆ byteOffset()

Foam::label & byteOffset ( )
noexcept

Return the byte offset.

Definition at line 53 of file foamGltfBufferView.C.

References byteOffset_, and Foam::noexcept.

Referenced by ~bufferView().

Here is the caller graph for this function:

◆ byteLength()

Foam::label & byteLength ( )
noexcept

Return the byte length.

Definition at line 59 of file foamGltfBufferView.C.

References byteLength_, and Foam::noexcept.

Referenced by ~bufferView().

Here is the caller graph for this function:

◆ target()

Foam::label & target ( )
noexcept

Return the target.

Definition at line 65 of file foamGltfBufferView.C.

References Foam::noexcept, and target_.

Referenced by ~bufferView().

Here is the caller graph for this function:

◆ write()

void write ( Ostream & os) const

Write.

Definition at line 71 of file foamGltfBufferView.C.

References buffer_, byteLength_, byteOffset_, Foam::indent(), Foam::nl, os(), target_, and base::write().

Referenced by Foam::operator<<(), and ~bufferView().

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 87 of file foamGltfBufferView.C.

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

Here is the call graph for this function:

Member Data Documentation

◆ buffer_

label buffer_
protected

Buffer index.

Definition at line 70 of file foamGltfBufferView.H.

Referenced by buffer(), bufferView(), bufferView(), operator=(), and write().

◆ byteOffset_

label byteOffset_
protected

Byte offset.

Definition at line 75 of file foamGltfBufferView.H.

Referenced by bufferView(), bufferView(), byteOffset(), operator=(), and write().

◆ byteLength_

label byteLength_
protected

Byte length.

Definition at line 80 of file foamGltfBufferView.H.

Referenced by bufferView(), bufferView(), byteLength(), operator=(), and write().

◆ target_

label target_
protected

Target.

Definition at line 85 of file foamGltfBufferView.H.

Referenced by bufferView(), bufferView(), operator=(), target(), and write().


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