trait S3d extends DbpfType
- Source
- S3d.scala
- Alphabetic
- By Inheritance
- S3d
- DbpfType
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
- abstract val anim: AnimSection
-
abstract
def
data: Array[Byte]
the uncompressed raw byte data of the entry
the uncompressed raw byte data of the entry
- Attributes
- protected
- Definition Classes
- DbpfType
- abstract val indx: IndexedSeq[IndxGroup]
- abstract val mats: IndexedSeq[MatsGroup]
- abstract val prim: IndexedSeq[PrimGroup]
- abstract val prop: IndexedSeq[PropGroup]
- abstract val regp: IndexedSeq[RegpGroup]
- abstract val vert: IndexedSeq[VertGroup]
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
*(rf: RotFlip): S3d
Rotates and flips the model.
Rotates and flips the model. If it is flipped, the normals will be flipped back automatically. Currently only supported for models without RegpGroup, and flipping is only supported for models consisting of triangles.
- Exceptions thrown
UnsupportedOperationException
if model has a non-empty RegpGroup or if rf.flipped and PrimGroup has other than triangles.
-
def
++(that: S3d): S3d
Combines two S3d-models by appending
that
tothis
.Combines two S3d-models by appending
that
tothis
. Anim-propertiesplayMode
,numFrames
,frameRate
anddisplacement
are copied fromthis
, only. -
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
convert[B <: DbpfType](implicit eh: ExceptionHandler, conv: Converter[DbpfType, B]): ![B, DbpfDecodeFailedException]
Deprecated: Prefer
convertTo
instead.Deprecated: Prefer
convertTo
instead.Converts this type to
B
. The implicit converter is usually provided by the companion object ofB
.An
ExceptionHandler
needs to be brought into scope via imports (eitherstrategy.throwExceptions
orstrategy.captureExceptions
from thescdbpf
package).- B
the type which this type gets converted to
- Definition Classes
- DbpfType
- Exceptions thrown
DbpfDecodeFailedException
if this type cannot be converted to typeB
structurally
-
def
convertTo[B <: DbpfType](dbpfType: DbpfTypeCompanion[B])(implicit eh: ExceptionHandler): ![B, DbpfDecodeFailedException]
Convert this type to
B
.Convert this type to
B
.An
ExceptionHandler
needs to be brought into scope via imports (eitherstrategy.throwExceptions
orstrategy.captureExceptions
from thescdbpf
package).- B
the type which this type gets converted to
- dbpfType
(the companion object of) the type which this type gets converted to
- Definition Classes
- DbpfType
- Exceptions thrown
DbpfDecodeFailedException
if this type cannot be converted to typeB
structurally
- def copy(vert: IndexedSeq[VertGroup] = vert, indx: IndexedSeq[IndxGroup] = indx, prim: IndexedSeq[PrimGroup] = prim, mats: IndexedSeq[MatsGroup] = mats, anim: AnimSection = anim, prop: IndexedSeq[PropGroup] = prop, regp: IndexedSeq[RegpGroup] = regp): S3d
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
scale(s: Float): S3d
Scales the model uniformly by a factor.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
translate(t: Translation): S3d
Translates the model on the three axes.
-
def
trim: S3d
Removes Mats, Indx, Prim and Vert groups that are unused, i.e.
Removes Mats, Indx, Prim and Vert groups that are unused, i.e. are not referenced in the Anim section. It does not perform a deep check, i.e. to the individual vertices that might be redundant.
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
withNormalsFlipped: S3d
Flips the normals by reversing the order of every triangle in the PrimGroups.
Flips the normals by reversing the order of every triangle in the PrimGroups. Currently, only supported for models consisting of triangles.
- Exceptions thrown
UnsupportedOperationException
if PrimGroup has other than triangles.