• Api Documentation
  • Source Code
Search Results for

    Show / Hide Table of Contents
    • SharpAssimp
      • Animation
      • AnimationBehaviour
      • AnimationInterpolation
      • AssimpContext
      • AssimpException
      • BlendMode
      • Bone
      • BoundingBox
      • Camera
      • CompileFlags
      • ConsoleLogStream
      • DefaultLogStream
      • EmbeddedTexture
      • ExcludeComponent
      • ExportDataBlob
      • ExportFormatDescription
      • Face
      • FileIOMode
      • FileIOSystem
      • FreeNativeDelegate
      • IMarshalable<Managed, Native>
      • INativeCustomMarshaler
      • IOStream
      • IOSystem
      • ImporterDescription
      • ImporterFeatureFlags
      • Light
      • LightSourceType
      • LogStream
      • LoggingCallback
      • Material
      • Material.PBRMaterialProperties
      • Material.ShaderMaterialProperties
      • MaterialProperty
      • Matrix3x3
      • MemoryHelper
      • Mesh
      • MeshAnimationAttachment
      • MeshAnimationChannel
      • MeshKey
      • MeshMorphAnimationChannel
      • MeshMorphKey
      • MeshMorphingMethod
      • MetaDataType
      • Metadata
      • Metadata.Entry
      • NativeCustomMarshalerAttribute
      • Node
      • NodeAnimationChannel
      • NodeCollection
      • Origin
      • PostProcessPreset
      • PostProcessSteps
      • PrimitiveType
      • PropertyType
      • QuaternionKey
      • Ray
      • ReturnCode
      • Scene
      • SceneFlags
      • ShadingMode
      • Texel
      • TextureFlags
      • TextureMapping
      • TextureOperation
      • TextureSlot
      • TextureType
      • TextureWrapMode
      • UVTransform
      • UVTransformFlags
      • VectorKey
      • VertexWeight
    • SharpAssimp.Configs
      • ACEvaluateSubdivisionConfig
      • ACSeparateBackfaceCullConfig
      • ASEReconstructNormalsConfig
      • AnimationAccuracyConfig
      • AppScaleConfig
      • BooleanPropertyConfig
      • ColladaIgnoreUpDirectionConfig
      • ColladaUseColladaNamesConfig
      • DeboneAllOrNoneConfig
      • DeboneThresholdConfig
      • ExportPointCloudsConfig
      • FBXConvertToMetersConfig
      • FBXImportAllGeometryLayersConfig
      • FBXImportAllMaterialsConfig
      • FBXImportAnimationsConfig
      • FBXImportCamerasConfig
      • FBXImportEmbeddedTexturesConfig
      • FBXImportEmbeddedTexturesLegacyNamingConfig
      • FBXImportLightsConfig
      • FBXImportMaterialsConfig
      • FBXOptimizeEmptyAnimationCurvesConfig
      • FBXPreservePivotsConfig
      • FBXStrictModeConfig
      • FavorSpeedConfig
      • FloatPropertyConfig
      • GlobalKeyFrameImportConfig
      • GlobalScaleConfig
      • IFCCylindricalTessellationConfig
      • IFCSkipSpaceRepresentationsConfig
      • IFCSmoothingAngleConfig
      • IFCUseCustomTriangulationConfig
      • IRRAnimationFrameRateConfig
      • IgnoreTextureCoordinatesConfig
      • IntegerPropertyConfig
      • KeepSceneHierarchyConfig
      • LWOImportOneLayerConfig
      • LWSAnimationEndConfig
      • LWSAnimationStartConfig
      • MD2KeyFrameImportConfig
      • MD3HandleMultiPartConfig
      • MD3KeyFrameImportConfig
      • MD3ShaderSourceConfig
      • MD3SkinNameConfig
      • MD5NoAnimationAutoLoadConfig
      • MDLColorMapConfig
      • MDLKeyFrameImportConfig
      • MaterialExcludeListConfig
      • MatrixPropertyConfig
      • MaxBoneCountConfig
      • MeasureTimeConfig
      • MeshTriangleLimitConfig
      • MeshVertexLimitConfig
      • MultithreadingConfig
      • NoSkeletonMeshesConfig
      • NodeExcludeListConfig
      • NormalSmoothingAngleConfig
      • NormalizeVertexComponentsConfig
      • OgreMaterialFileConfig
      • OgreTextureTypeFromFilenameConfig
      • PropertyConfig
      • RemoveComponentConfig
      • RemoveDegeneratePrimitivesCheckAreaConfig
      • RemoveDegeneratePrimitivesConfig
      • RemoveEmptyBonesConfig
      • RootTransformationConfig
      • SMDKeyFrameImportConfig
      • SmdLoadAnimationListConfig
      • SortByPrimitiveTypeConfig
      • StringPropertyConfig
      • TangentSmoothingAngleConfig
      • TangentTextureChannelIndexConfig
      • TerragenComputeTexCoordsConfig
      • TransformUVConfig
      • UnrealHandleFlagsConfig
      • UnrealKeyFrameImportConfig
      • VertexBoneWeightLimitConfig
      • VertexCacheSizeConfig
      • XFileUseDoublesConfig
    • SharpAssimp.Unmanaged
      • AiAnimMesh
      • AiAnimation
      • AiBone
      • AiCamera
      • AiConfigs
      • AiDefines
      • AiExportDataBlob
      • AiExportFormatDesc
      • AiFace
      • AiFile
      • AiFileCloseProc
      • AiFileFlushProc
      • AiFileIO
      • AiFileOpenProc
      • AiFileReadProc
      • AiFileSeek
      • AiFileTellProc
      • AiFileWriteProc
      • AiImporterDesc
      • AiLight
      • AiLogStream
      • AiLogStreamCallback
      • AiMatKeys
      • AiMaterial
      • AiMaterialProperty
      • AiMemoryInfo
      • AiMesh
      • AiMeshAnim
      • AiMeshColorArray
      • AiMeshMorphAnim
      • AiMeshMorphKey
      • AiMeshTextureCoordinateArray
      • AiMeshUVComponentArray
      • AiMetadata
      • AiMetadataEntry
      • AiNode
      • AiNodeAnim
      • AiScene
      • AiString
      • AiTexture
      • AssimpLibrary
      • Platform
      • UnmanagedFunctionNameAttribute
      • UnmanagedLibrary
      • UnmanagedLibraryResolver

    Class LogStream

    Represents a log stream, which receives all log messages and streams them somewhere.

    Inheritance
    object
    LogStream
    ConsoleLogStream
    Implements
    IDisposable
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: SharpAssimp
    Assembly: SharpAssimp.dll
    Syntax
    public class LogStream : IDisposable

    Constructors

    | Edit this page View Source

    LogStream(LoggingCallback)

    Constructs a new LogStream.

    Declaration
    public LogStream(LoggingCallback callback)
    Parameters
    Type Name Description
    LoggingCallback callback

    Logging callback that is called when messages are received by the log stream.

    | Edit this page View Source

    LogStream(LoggingCallback, string)

    Constructs a new LogStream.

    Declaration
    public LogStream(LoggingCallback callback, string userData)
    Parameters
    Type Name Description
    LoggingCallback callback

    Logging callback that is called when messages are received by the log stream.

    string userData

    User-supplied data

    | Edit this page View Source

    LogStream(bool)

    Constructs a new LogStream.

    Declaration
    protected LogStream(bool initialize = true)
    Parameters
    Type Name Description
    bool initialize

    Whether to immediately initialize the system by setting up native pointers. Set this to false if you want to manually initialize and use custom function pointers for advanced use cases.

    | Edit this page View Source

    LogStream(string, bool)

    Constructs a new LogStream.

    Declaration
    protected LogStream(string userData, bool initialize = true)
    Parameters
    Type Name Description
    string userData

    User-supplied data

    bool initialize

    True if initialize should be immediately called with the default callbacks. Set this to false if your subclass requires a different way to setup the function pointers.

    Properties

    | Edit this page View Source

    IsAttached

    Gets whether or not the logstream is currently attached to the library.

    Declaration
    public bool IsAttached { get; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    IsDisposed

    Gets whether the logstream has been disposed or not.

    Declaration
    public bool IsDisposed { get; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    IsVerboseLoggingEnabled

    Gets or sets, if verbose logging is enabled globally.

    Declaration
    public static bool IsVerboseLoggingEnabled { get; set; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    UserData

    Gets or sets the user data to be passed to the callback.

    Declaration
    public string UserData { get; set; }
    Property Value
    Type Description
    string

    Methods

    | Edit this page View Source

    Attach()

    Attaches the logstream to the library.

    Declaration
    public void Attach()
    | Edit this page View Source

    Detach()

    Detaches the logstream from the library.

    Declaration
    public void Detach()
    | Edit this page View Source

    DetachAllLogstreams()

    Detaches all active logstreams from the library.

    Declaration
    public static void DetachAllLogstreams()
    | Edit this page View Source

    Dispose()

    Releases unmanaged resources held by the LogStream. This should not be called by the user if the logstream is currently attached to an assimp importer.

    Declaration
    public void Dispose()
    | Edit this page View Source

    Dispose(bool)

    Releases unmanaged and - optionally - managed resources.

    Declaration
    protected virtual void Dispose(bool disposing)
    Parameters
    Type Name Description
    bool disposing

    True to release both managed and unmanaged resources; False to release only unmanaged resources.

    | Edit this page View Source

    ~LogStream()

    Finalizes an instance of the LogStream class.

    Declaration
    protected ~LogStream()
    | Edit this page View Source

    GetAttachedLogStreams()

    Gets all active logstreams that are currently attached to the library.

    Declaration
    public static IEnumerable<LogStream> GetAttachedLogStreams()
    Returns
    Type Description
    IEnumerable<LogStream>

    Collection of active logstreams attached to the library.

    | Edit this page View Source

    Initialize(AiLogStreamCallback, LoggingCallback?, string, nint)

    Initializes the stream by setting up native pointers for Assimp to the specified functions.

    Declaration
    protected void Initialize(AiLogStreamCallback aiLogStreamCallback, LoggingCallback? callback = null, string userData = "", nint assimpUserData = 0)
    Parameters
    Type Name Description
    AiLogStreamCallback aiLogStreamCallback

    Callback that is marshaled to native code, a reference is held on to avoid it being GC'ed.

    LoggingCallback callback

    User callback, if any. Defaults to console if null.

    string userData

    User data, or empty.

    nint assimpUserData

    Additional assimp user data, if any.

    | Edit this page View Source

    Log(string)

    Logs a message.

    Declaration
    public void Log(string msg)
    Parameters
    Type Name Description
    string msg

    Message contents

    | Edit this page View Source

    LogMessage(string, string)

    Override this method to log a message for a subclass of Logstream, if no callback was set.

    Declaration
    protected virtual void LogMessage(string msg, string userData)
    Parameters
    Type Name Description
    string msg

    Message

    string userData

    User data

    | Edit this page View Source

    OnAiLogStreamCallback(string, nint)

    Callback for Assimp that handles a message being logged.

    Declaration
    protected void OnAiLogStreamCallback(string msg, nint userData)
    Parameters
    Type Name Description
    string msg
    nint userData
    | Edit this page View Source

    OnAttach()

    Called when the log stream has been attached to the assimp importer. At this point it may start receiving messages.

    Declaration
    protected virtual void OnAttach()
    | Edit this page View Source

    OnDetach()

    Called when the log stream has been detatched from the assimp importer. After this point it will stop receiving messages until it is re-attached.

    Declaration
    protected virtual void OnDetach()

    Implements

    IDisposable
    • Edit this page
    • View Source
    In this article
    Back to top Copyright (c) 2012-2020 Nicholas Woodfield, (c) 2024 Salvage, (c) 2025 Jérémy Ansel