pub struct SymbolicFillArea { /* private fields */ }Expand description
A 2D filled region (IfcAnnotationFillArea / IfcAnnotationFillAreaOccurrence).
Stores one outer ring of 2D points plus an offset table indexing inner
rings (holes). Both rings are stored flat in points so the JS side can
view the buffer as one Float32Array. The optional hatch_* fields encode
IfcFillAreaStyleHatching (line spacing, primary/secondary angles, line
width) when the IfcStyledItem chain resolves to a hatching style; absent
styles render as a solid fill.
holes_offsets is an inclusive-prefix array describing where each hole
begins. The outer ring is implicitly at points[0..holes_offsets[0]]
(or all points if holes_offsets is empty). Each holes_offsets[i] is a
vertex index, not a byte offset.
Implementations§
Source§impl SymbolicFillArea
impl SymbolicFillArea
pub fn geometry_item_id(&self) -> Option<u32>
pub fn express_id(&self) -> u32
pub fn ifc_type(&self) -> String
Sourcepub fn points(&self) -> Float32Array
pub fn points(&self) -> Float32Array
Flattened ring vertices.
pub fn point_count(&self) -> usize
Sourcepub fn holes_offsets(&self) -> Uint32Array
pub fn holes_offsets(&self) -> Uint32Array
Vertex indices marking the start of each hole. Empty = no holes.
pub fn hole_count(&self) -> usize
pub fn fill_r(&self) -> f32
pub fn fill_g(&self) -> f32
pub fn fill_b(&self) -> f32
pub fn fill_a(&self) -> f32
pub fn has_hatching(&self) -> bool
pub fn hatch_spacing(&self) -> f32
pub fn hatch_angle(&self) -> f32
pub fn hatch_angle_secondary(&self) -> f32
pub fn hatch_line_width(&self) -> f32
pub fn world_y(&self) -> f32
pub fn rep_identifier(&self) -> String
Trait Implementations§
Source§impl From<SymbolicFillArea> for JsValue
impl From<SymbolicFillArea> for JsValue
Source§fn from(value: SymbolicFillArea) -> Self
fn from(value: SymbolicFillArea) -> Self
Source§impl FromWasmAbi for SymbolicFillArea
impl FromWasmAbi for SymbolicFillArea
Source§impl IntoWasmAbi for SymbolicFillArea
impl IntoWasmAbi for SymbolicFillArea
Source§impl LongRefFromWasmAbi for SymbolicFillArea
impl LongRefFromWasmAbi for SymbolicFillArea
Source§type Abi = WasmPtr<WasmRefCell<SymbolicFillArea>>
type Abi = WasmPtr<WasmRefCell<SymbolicFillArea>>
RefFromWasmAbi::AbiSource§type Anchor = RcRef<SymbolicFillArea>
type Anchor = RcRef<SymbolicFillArea>
RefFromWasmAbi::AnchorSource§unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor
unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor
RefFromWasmAbi::ref_from_abiSource§impl OptionFromWasmAbi for SymbolicFillArea
impl OptionFromWasmAbi for SymbolicFillArea
Source§impl OptionIntoWasmAbi for SymbolicFillArea
impl OptionIntoWasmAbi for SymbolicFillArea
Source§impl RefFromWasmAbi for SymbolicFillArea
impl RefFromWasmAbi for SymbolicFillArea
Source§type Abi = WasmPtr<WasmRefCell<SymbolicFillArea>>
type Abi = WasmPtr<WasmRefCell<SymbolicFillArea>>
Self are recovered from.Source§type Anchor = RcRef<SymbolicFillArea>
type Anchor = RcRef<SymbolicFillArea>
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl RefMutFromWasmAbi for SymbolicFillArea
impl RefMutFromWasmAbi for SymbolicFillArea
Source§type Abi = WasmPtr<WasmRefCell<SymbolicFillArea>>
type Abi = WasmPtr<WasmRefCell<SymbolicFillArea>>
RefFromWasmAbi::AbiSource§type Anchor = RcRefMut<SymbolicFillArea>
type Anchor = RcRefMut<SymbolicFillArea>
RefFromWasmAbi::AnchorSource§unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor
unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor
RefFromWasmAbi::ref_from_abiSource§impl TryFromJsValue for SymbolicFillArea
impl TryFromJsValue for SymbolicFillArea
Source§impl VectorFromWasmAbi for SymbolicFillArea
impl VectorFromWasmAbi for SymbolicFillArea
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[SymbolicFillArea]>
Source§impl VectorIntoWasmAbi for SymbolicFillArea
impl VectorIntoWasmAbi for SymbolicFillArea
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[SymbolicFillArea]>) -> Self::Abi
Source§impl WasmDescribeVector for SymbolicFillArea
impl WasmDescribeVector for SymbolicFillArea
impl SupportsConstructor for SymbolicFillArea
impl SupportsInstanceProperty for SymbolicFillArea
impl SupportsStaticProperty for SymbolicFillArea
Auto Trait Implementations§
impl Freeze for SymbolicFillArea
impl RefUnwindSafe for SymbolicFillArea
impl Send for SymbolicFillArea
impl Sync for SymbolicFillArea
impl Unpin for SymbolicFillArea
impl UnwindSafe for SymbolicFillArea
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
self to type T. The semantics of numeric casting with the as operator are followed, so <T as As>::as_::<U> can be used in the same way as T as U for numeric conversions. Read moreSource§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.