i3s

package module
v0.0.0-...-73f19eb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 1, 2021 License: AGPL-3.0, Apache-2.0 Imports: 5 Imported by: 0

README

go-i3s

Documentation

Index

Constants

View Source
const (
	IDS_I3S_VISITING_NODE                               = int32(7000)
	IDS_I3S_OUT_OF_RANGE_ID                             = int32(7001)
	IDS_I3S_TYPE_MISMATCH                               = int32(7002)
	IDS_I3S_MISSING_JPG_OR_PNG                          = int32(7003)
	IDS_I3S_INVALID_TREE_TOPOLOGY                       = int32(7004)
	IDS_I3S_EMPTY_LEAF_NODE                             = int32(7005)
	IDS_I3S_UNCONNECTED_NODE                            = int32(7006)
	IDS_I3S_MISSING_ATTRIBUTE_STATS                     = int32(7007)
	IDS_I3S_GEOMETRY_COMPRESSION_RATIO                  = int32(7008)
	IDS_I3S_JSON_PARSING_ERROR                          = int32(7009)
	IDS_I3S_INVALID_LOD_METRIC                          = int32(7010)
	IDS_I3S_EXPECTS                                     = int32(7011)
	IDS_I3S_UNSUPPORTED_VERSION                         = int32(7012)
	IDS_I3S_PATH_COMPATIBILITY_WARNING                  = int32(7013)
	IDS_I3S_INVALID_EXTENT                              = int32(7014)
	IDS_I3S_DUPLICATE_ATTRIBUTE_KEY                     = int32(7015)
	IDS_I3S_DUPLICATE_ATTRIBUTE_NAME                    = int32(7016)
	IDS_I3S_MISSING_ATTRIBUTE_STATS_DECL                = int32(7017)
	IDS_I3S_STATS_DECL_UNKNOWN_ATTRIBUTE                = int32(7018)
	IDS_I3S_MISSING_ATTRIBUTE_STORAGE_DECL              = int32(7019)
	IDS_I3S_INVALID_COMPRESSED_GEOMETRY_INDEX           = int32(7020)
	IDS_I3S_INVALID_UNCOMPRESSED_GEOMETRY_INDEX         = int32(7021)
	IDS_I3S_INVALID_VERTEX_COUNT_IN_BUFFER              = int32(7022)
	IDS_I3S_MISSING_ATTRIBUTE_SET_DECL                  = int32(7023)
	IDS_I3S_UNEXPECTED_ATTRIBUTE_IN_COMPRESSED_GEOMETRY = int32(7024)
	IDS_I3S_MISSING_ATTRIBUTE_IN_COMPRESSED_GEOMETRY    = int32(7025)
	IDS_I3S_INVALID_FEATURE_COUNT_IN_BUFFER             = int32(7026)
	IDS_I3S_MISSING_TEXEL_COUNT_ESTIMATE                = int32(7027)
	IDS_I3S_IMAGE_ENCODING_ERROR                        = int32(7028)
	IDS_I3S_IMAGE_DECODING_ERROR                        = int32(7029)
	IDS_I3S_UNEXPECTED_ALPHA_CHANNEL                    = int32(7030)
	IDS_I3S_MISSING_ALPHA_CHANNEL                       = int32(7031)
	IDS_I3S_MISSING_RESOURCE                            = int32(7032)
	IDS_I3S_INVALID_BYTE_ALIGNMENT                      = int32(7033)
	IDS_I3S_INVALID_BINARY_BUFFER_SIZE                  = int32(7034)
	IDS_I3S_CONNECTION_ERROR                            = int32(7035)
	IDS_I3S_MBS_OBB_CENTER_MISMATCH                     = int32(7036)
	IDS_I3S_INVALID_RADIUS_MBS                          = int32(7037)
	IDS_I3S_INVALID_STRING_LENGTH_IN_ATTRIBUTE_BUFFER   = int32(7038)
	IDS_I3S_INVALID_FEATURE_FACE_RANGE                  = int32(7039)
	IDS_I3S_BAD_UV                                      = int32(7040)
	IDS_I3S_MISSING_PROPERTY_COMPATIBILITY_WARNING      = int32(7041)
	IDS_I3S_COORDINATE_SYSTEM_COMPATIBILITY_WARNING     = int32(7042)
	IDS_I3S_IMAGE_TOO_LARGE                             = int32(7043)
	IDS_I3S_LEPCC_DECODE_ERROR                          = int32(7044)
	IDS_I3S_DRACO_DECODE_ERROR                          = int32(7045)
	IDS_I3S_ATTRIBUTE_VALUE_COUNT_MISMATCH              = int32(7046)
	IDS_I3S_WRONG_CHILD_LINK                            = int32(7047)
	IDS_I3S_TEX_ATLAS_VERTEX_REGION_MISMATCH            = int32(7048)
	IDS_I3S_LEGACY_TEX_ATLAS_FLAG_MISMATCH              = int32(7049)
	IDS_I3S_MISSING_VERSION                             = int32(7050)
	IDS_I3S_OK                                          = int32(8000)
	IDS_I3S_IO_OPEN_FAILED                              = int32(8004)
	IDS_I3S_IO_WRITE_FAILED                             = int32(8007)
	IDS_I3S_INTERNAL_ERROR                              = int32(8009)
	IDS_I3S_COMPRESSION_ERROR                           = int32(8032)
	IDS_I3S_DEGENERATED_MESH                            = int32(8090)
)
View Source
const (
	CF_Unfinalized_only                      = CreateFlags(1)
	CF_Disable_auto_finalize                 = CreateFlags(2)
	CF_Overwrite_if_exists_and_auto_finalize = CreateFlags(0)
)
View Source
const (
	MT_Not_set     = MimeType(1)
	MT_Json        = MimeType(2)
	MT_Binary      = MimeType(4)
	MT_Jpeg        = MimeType(8)
	MT_Png         = MimeType(16)
	MT_Dds_proper  = MimeType(32)
	MT_Dds_legacy  = MimeType(64)
	MT_Ktx         = MimeType(128)
	MT__next_      = MimeType(256)
	MT_Default     = MT_Json | MT_Binary | MT_Not_set
	MT_Dds_any     = MT_Dds_proper | MT_Dds_legacy
	MT_Any_texture = MT_Jpeg | MT_Png | MT_Dds_any | MT_Ktx | MT_Binary
)
View Source
const (
	ME_Not_set             = MimeEncoding(1)
	ME_Gzip                = MimeEncoding(2)
	ME_Lepcc_xyz           = MimeEncoding(4)
	ME_Lepcc_rgb           = MimeEncoding(8)
	ME_Lepcc_int           = MimeEncoding(16)
	ME__next_              = MimeEncoding(32)
	ME_Default             = ME_Not_set | ME_Gzip
	ME_Any_pcsl_attributes = ME_Gzip | ME_Lepcc_rgb | ME_Lepcc_int | ME_Not_set
	ME_Any_geometry        = ME_Not_set | ME_Gzip | ME_Lepcc_xyz
)
View Source
const (
	GF_NOT_SET      = GeometryFormat(0)
	GF_LEGACY       = GeometryFormat(1)
	GF_POINT_LEGACY = GeometryFormat(2)
	GF_DRACO        = GeometryFormat(4)
	GF_LEPCC        = GeometryFormat(8)
)
View Source
const (
	IF_NOT_SET            = ImageFormat(0)
	IF_JPG                = ImageFormat(1)
	IF_PNG                = ImageFormat(2)
	IF_DDS                = ImageFormat(4)
	IF_KTX                = ImageFormat(8)
	IF_RAW_RGBA8          = ImageFormat(16)
	IF_RAW_RGB8           = ImageFormat(32)
	IF_DEFAULT            = IF_JPG | IF_PNG
	IF_UNCOMPRESSED       = IF_RAW_RGBA8 | IF_RAW_RGB8
	IF_DESKTOP            = IF_DEFAULT | IF_DDS
	IF_ALL_COMPRESSED     = IF_DESKTOP | IF_KTX
	IF_NOT_GPU_COMPRESSED = IF_UNCOMPRESSED | IF_JPG | IF_PNG
)
View Source
const (
	AM_OPAQUE  = AlphaMode(0)
	AM_MASK    = AlphaMode(1)
	AM_BLEND   = AlphaMode(2)
	AM_NOT_SET = AlphaMode(3)
)
View Source
const (
	AM_NONE  = FaceCullingMode(0)
	AM_FRONT = FaceCullingMode(1)
	AM_BACK  = FaceCullingMode(2)
)
View Source
const (
	DT_INT8     = DataType(0)
	DT_UINT8    = DataType(1)
	DT_INT16    = DataType(2)
	DT_UINT16   = DataType(3)
	DT_INT32    = DataType(4)
	DT_UINT32   = DataType(5)
	DT_OID32    = DataType(6)
	DT_INT64    = DataType(7)
	DT_UINT64   = DataType(8)
	DT_OID64    = DataType(9)
	DT_FLOAT32  = DataType(10)
	DT_FLOAT64  = DataType(11)
	DT_STRING   = DataType(12)
	DT_DATE     = DataType(13)
	DT_GLOBALID = DataType(14)
	DT_GUID     = DataType(15)
	DT_NOT_SET  = DataType(16)
)
View Source
const (
	FT_DATA         = EsriFieldType(0)
	FT_SINGLE       = EsriFieldType(1)
	FT_DOUBLE       = EsriFieldType(2)
	FT_GUID         = EsriFieldType(3)
	FT_GLOBALID     = EsriFieldType(4)
	FT_INTEGER      = EsriFieldType(5)
	FT_OID          = EsriFieldType(6)
	FT_SMALLINTEGER = EsriFieldType(7)
	FT_STRING       = EsriFieldType(8)
	FT_XML          = EsriFieldType(9)
	FT_NOT_SET      = EsriFieldType(10)
)
View Source
const (
	VA_POSITION = VertexAttribOrdering(0)
	VA_NORMAL   = VertexAttribOrdering(1)
	VA_UV0      = VertexAttribOrdering(2)
	VA_COLOR    = VertexAttribOrdering(3)
	VA_REGION   = VertexAttribOrdering(4)
)
View Source
const (
	FA_FID       = FeatureAttribOrdering(0)
	FA_FACERANGE = FeatureAttribOrdering(1)
)
View Source
const (
	GH_VERTEXCOUNT  = GeometryHeaderProperty(0)
	GH_FEATURECOUNT = GeometryHeaderProperty(1)
)
View Source
const (
	MT_TRIANGLES = MeshTopology(0)
	MT_LINES     = MeshTopology(1)
	MT_POINTS    = MeshTopology(2)
)
View Source
const (
	ENC_NONE   = Encoding(0)
	ENC_STRING = Encoding(1)
)
View Source
const (
	LMT_MAX_SCREEN_AREA       = LodMetricType(0)
	LMT_MAX_SCREEN_SIZE       = LodMetricType(1)
	LMT_DISTANCE              = LodMetricType(2)
	LMT_EFFECTIVE_DENSITY     = LodMetricType(3)
	LMT_SCREEN_SPACE_RELATIVE = LodMetricType(4)
	LMT_NOT_SET               = LodMetricType(5)
)
View Source
const (
	LT_MESH3D     = LayerType(0)
	LT_MESHIM     = LayerType(1)
	LT_POINT      = LayerType(2)
	LT_POINTCLOUD = LayerType(3)
	LT_BUILDING   = LayerType(4)
	LT_VOXEL      = LayerType(5)
	LT_GROUP      = LayerType(6)
)
View Source
const (
	VBB_PREVERTEX = VBBinding(0)
	VBB_UVREGION  = VBBinding(1)
	VBB_FEATURE   = VBBinding(2)
)
View Source
const (
	NRF_EAST_NORTH_UP        = NormalReferenceFrame(0)
	NRF_EAST_CENTERED        = NormalReferenceFrame(1)
	NRF_VERTEXREFERENCEFRAME = NormalReferenceFrame(2)
	NRF_NOT_SET              = NormalReferenceFrame(3)
)
View Source
const (
	CMA_POSITION     = CompressedMeshAttribute(0)
	CMA_NORMAL       = CompressedMeshAttribute(1)
	CMA_UV0          = CompressedMeshAttribute(2)
	CMA_COLOR        = CompressedMeshAttribute(3)
	CMA_UVREGION     = CompressedMeshAttribute(4)
	CMA_FEATUREINDEX = CompressedMeshAttribute(5)
	CMA_FLAG         = CompressedMeshAttribute(6)
)
View Source
const (
	AH_COUNT                = AttribHeaderProperty(0)
	AH_ATTRIBHEADERPROPERTY = AttribHeaderProperty(1)
)
View Source
const (
	AO_ATTRIB_VALUES = AttribOrdering(0)
	AO_BYTE_COUNTS   = AttribOrdering(1)
	AO_OBJECT_IDS    = AttribOrdering(1)
)
View Source
const (
	CGF_NOT_INIT = CompressedGeometryFormat(0)
	CGF_DRACO    = CompressedGeometryFormat(1)
	CGF_LEPCC    = CompressedGeometryFormat(2)
)
View Source
const (
	LIC_RGBA    = LegacyImageChannel(0)
	LIC_RGB     = LegacyImageChannel(1)
	LIC_NOT_SET = LegacyImageChannel(2)
)
View Source
const (
	LWM_NONE   = LegacyWrapMode(0)
	LWM_REPEAT = LegacyWrapMode(1)
	LWM_MIRROR = LegacyWrapMode(2)
)
View Source
const (
	MIF_JPG     = MimeImageFormat(0)
	MIF_PNG     = MimeImageFormat(1)
	MIF_DDS     = MimeImageFormat(2)
	MIF_KTX     = MimeImageFormat(3)
	MIF_NOT_SET = MimeImageFormat(4)
)
View Source
const (
	VENC_UTF8    = ValueEncoding(0)
	VENC_NOT_SET = ValueEncoding(1)
)
View Source
const (
	ASE_EMBEDDED_ELEVATION = AttributeStorageInfoEncoding(0)
	ASE_LEPCC_XYZ          = AttributeStorageInfoEncoding(1)
	ASE_LEPCC_RGB          = AttributeStorageInfoEncoding(2)
	ASE_LEPCC_INTENSITY    = AttributeStorageInfoEncoding(3)
	ASE_NOT_SET            = AttributeStorageInfoEncoding(4)
)
View Source
const (
	BFM_SOLID     = BslFilterMode(0)
	BFM_WIREFRAME = BslFilterMode(1)
	BFM_NOT_SET   = BslFilterMode(2)
)
View Source
const (
	HM_GRAVITY_RELATED = HeightModel(0)
	HM_ELLIPSOIDAL     = HeightModel(1)
	HM_ORTHOMETRIC     = HeightModel(2)
	HM_NOT_SET         = HeightModel(3)
)
View Source
const (
	HU_METER             = HeightUnit(0)
	HU_USFOOT            = HeightUnit(1)
	HU_FOOT              = HeightUnit(2)
	HU_CLARKE_FOOT       = HeightUnit(3)
	HU_CLARKE_YARD       = HeightUnit(4)
	HU_CLARKE_LINK       = HeightUnit(5)
	HU_SEARS_YARD        = HeightUnit(6)
	HU_SEARS_FOOT        = HeightUnit(7)
	HU_SEARS_CHAIN       = HeightUnit(8)
	HU_BENOIT_CHAIN      = HeightUnit(9)
	HU_INDIAN_YARD       = HeightUnit(10)
	HU_INDIAN_1937_YARD  = HeightUnit(11)
	HU_GOLD_COAST_FOOT   = HeightUnit(12)
	HU_SEARS_TRUNC_CHAIN = HeightUnit(13)
	HU_US_INCH           = HeightUnit(14)
	HU_US_MILE           = HeightUnit(15)
	HU_US_YARD           = HeightUnit(16)
	HU_MILLIMETER        = HeightUnit(17)
	HU_DECIMETER         = HeightUnit(18)
	HU_CENTIMETER        = HeightUnit(19)
	HU_KILOMETER         = HeightUnit(20)
	HU_NOT_SET           = HeightUnit(21)
)
View Source
const (
	C_CONTINUITY = Continuity(0)
	C_DISCRETE   = Continuity(1)
	C_NOT_SET    = Continuity(2)
)
View Source
const (
	BQ_HORIZONTAL_COORDINATE = BaseQuantity(0)
	BQ_VERTICAL_COORDINATE   = BaseQuantity(1)
	BQ_TIME                  = BaseQuantity(2)
	BQ_NONE                  = BaseQuantity(3)
	BQ_NOT_SET               = BaseQuantity(4)
)
View Source
const (
	SS_FINAL   = StatisticsStatus(0)
	SS_PARTIAL = StatisticsStatus(1)
	SS_NOT_SET = StatisticsStatus(2)
)
View Source
const (
	PABT_ELEVATION     = PcslAttributeBufferType(1)
	PABT_INTENSITY     = PcslAttributeBufferType(2)
	PABT_RGB           = PcslAttributeBufferType(4)
	PABT_CLASS_CODE    = PcslAttributeBufferType(8)
	PABT_FLAGS         = PcslAttributeBufferType(16)
	PABT_RETURNS       = PcslAttributeBufferType(32)
	PABT_POINTID       = PcslAttributeBufferType(64)
	PABT_USER_DATA     = PcslAttributeBufferType(128)
	PABT_POINT_SRC_ID  = PcslAttributeBufferType(256)
	PABT_GPS_TIME      = PcslAttributeBufferType(512)
	PABT_SCAN_ANGLE    = PcslAttributeBufferType(1024)
	PABT_NEAR_INFRARED = PcslAttributeBufferType(2048)
	PABT_NOT_SET       = PcslAttributeBufferType(0)
)
View Source
const (
	BVT_OBB     = BoundingVolumeType(0)
	BVT_MBS     = BoundingVolumeType(1)
	BVT_NOT_SET = BoundingVolumeType(2)
)
View Source
const (
	VVS_STC_HOT_SPOT_RESULTS        = VxlVariableSemantic(0)
	VVS_STC_CLUSTER_OUTLIER_RESULTS = VxlVariableSemantic(1)
	VVS_STC_ESTIMATED_BIN           = VxlVariableSemantic(2)
	VVS_GENERIC_NEAREST_INTEPOLATED = VxlVariableSemantic(3)
	VVS_NOT_SET                     = VxlVariableSemantic(4)
)
View Source
const (
	VEM_SCALE_POSITION = VerticalExagMode(0)
	VEM_SCALE_HEIGHT   = VerticalExagMode(1)
	VEM_NOT_SET        = VerticalExagMode(2)
)
View Source
const (
	AF_POS              = AttribFlag(1)
	AF_NORMAL           = AttribFlag(2)
	AF_UV0              = AttribFlag(4)
	AF_UV1              = AttribFlag(16)
	AF_COLOR            = AttribFlag(32)
	AF_REGION           = AttribFlag(64)
	AF_FEATUREID        = AttribFlag(128)
	AF_LEGACYNOREGION   = AF_POS | AF_NORMAL | AF_UV0 | AF_COLOR | AF_FEATUREID
	AF_LEGACYWITHREGION = AF_LEGACYNOREGION | AF_REGION
)
View Source
const (
	TS_BASE_COLOR         = TextureSemantic(0)
	TS_METALLIC_ROUGHNESS = TextureSemantic(1)
	TS_DIFFUSE_TEXTURE    = TextureSemantic(2)
	TS_EMISSIVE_TEXTURE   = TextureSemantic(3)
	TS_NORMAL_MAP         = TextureSemantic(4)
	TS_OCCLUSION_MAP      = TextureSemantic(5)
	TS_NOT_SET            = TextureSemantic(6)
)
View Source
const (
	AS_OPAQUE        = AlphaStatus(0)
	AS_MASK          = AlphaStatus(1)
	AS_BLEND         = AlphaStatus(8)
	AS_MASK_OR_BLEND = AlphaStatus(-2)
	AS_NOT_SET       = AlphaStatus(-1)
)
View Source
const (
	WM_NONE    = WrapMode(0)
	WM_WRAP_X  = WrapMode(1)
	WM_WRAP_Y  = WrapMode(2)
	WM_WRAP_XY = WM_WRAP_X | WM_WRAP_Y
	WM_NOT_SET = WrapMode(4)
)
View Source
const (
	TC_NOT_SET            = ImageFormat(0)
	TC_JPG                = ImageFormat(1)
	TC_PNG                = ImageFormat(2)
	TC_DDS                = ImageFormat(4)
	TC_KTX                = ImageFormat(8)
	TC_RAW_RGBA8          = ImageFormat(16)
	TC_RAW_RGB8           = ImageFormat(32)
	TC_DEFAULT            = TC_JPG | TC_PNG
	TC_UNCOMPRESSED       = TC_RAW_RGBA8 | TC_RAW_RGB8
	TC_ALL_COMPRESSED     = TC_DESKTOP | TC_KTX
	TC_NOT_GPU_COMPRESSED = TC_UNCOMPRESSED | TC_JPG | TC_PNG
	TC_DXT_BC_ALL         = TC_DDS
	TC_ETC_2              = TC_KTX
	TC_DESKTOP            = TC_DXT_BC_ALL
)
View Source
const (
	LT_PERATTRIBUTEARRAY = LegacyTopology(0)
)
View Source
const (
	LUS_UV0 = LegacyUVSet(0)
)

Variables

This section is empty.

Functions

func GetMessage

func GetMessage(stringID int32) string

Types

type AlphaMode

type AlphaMode C.int

type AlphaStatus

type AlphaStatus C.int

type AttribFlag

type AttribFlag C.int

type AttribHeaderProperty

type AttribHeaderProperty C.int

type AttribIndex

type AttribIndex C.int

type AttribOrdering

type AttribOrdering C.int

type AttribSchemaID

type AttribSchemaID C.int

type AttributeMeta

type AttributeMeta struct {
	// contains filtered or unexported fields
}

func (*AttributeMeta) SetAlias

func (n *AttributeMeta) SetAlias(alias string)

func (*AttributeMeta) SetKey

func (n *AttributeMeta) SetKey(key string)

func (*AttributeMeta) SetName

func (n *AttributeMeta) SetName(name string)

type AttributeStorageInfoEncoding

type AttributeStorageInfoEncoding C.int

type BaseQuantity

type BaseQuantity C.int

type BoundingVolumeType

type BoundingVolumeType C.int

type BslFilterMode

type BslFilterMode C.int

type CartesianTransformation

type CartesianTransformation struct {
	// contains filtered or unexported fields
}

func NewCartesianTransformation

func NewCartesianTransformation(to func(sr *SpatialReference, xyz []C.float) bool, from func(sr *SpatialReference, xyz []C.float) bool) *CartesianTransformation

type CompressedGeometryFormat

type CompressedGeometryFormat C.int

type CompressedMeshAttribute

type CompressedMeshAttribute C.int

type Continuity

type Continuity C.int

type CreateFlags

type CreateFlags C.uint

type CtxProperties

type CtxProperties struct {
	// contains filtered or unexported fields
}

func NewCtxProperties

func NewCtxProperties() *CtxProperties

func (*CtxProperties) IsDropNormals

func (n *CtxProperties) IsDropNormals(flag bool)

func (*CtxProperties) SetGPUTexEncodingSupport

func (n *CtxProperties) SetGPUTexEncodingSupport(tp GeometryCompressionFlags)

func (*CtxProperties) SetGPUTexRenderingSupport

func (n *CtxProperties) SetGPUTexRenderingSupport(tp GeometryCompressionFlags)

func (*CtxProperties) SetGeomDecodingSupport

func (n *CtxProperties) SetGeomDecodingSupport(tp GeometryCompressionFlags)

func (*CtxProperties) SetGeomEncodingSupport

func (n *CtxProperties) SetGeomEncodingSupport(tp GeometryCompressionFlags)

func (*CtxProperties) SetMaxTextureSize

func (n *CtxProperties) SetMaxTextureSize(size uint16)

type DataType

type DataType C.int

type Encoding

type Encoding C.int

type EsriFieldType

type EsriFieldType C.int

type FaceCullingMode

type FaceCullingMode C.int

type FeatureAttribOrdering

type FeatureAttribOrdering C.int

type GPUTextureCompression

type GPUTextureCompression C.uint

type GeometryCompression

type GeometryCompression CompressedGeometryFormat

type GeometryCompressionFlags

type GeometryCompressionFlags C.uint

type GeometryFormat

type GeometryFormat C.int

type GeometryHeaderProperty

type GeometryHeaderProperty C.int

type GeometryID

type GeometryID C.int

type HeightModel

type HeightModel C.int

type HeightUnit

type HeightUnit C.int

type ImageFormat

type ImageFormat C.uint

type LayerID

type LayerID C.size_t

type LayerMeta

type LayerMeta struct {
	// contains filtered or unexported fields
}

func GetMeatWithType

func GetMeatWithType(layerType LayerType, name string) *LayerMeta

func NewLayerMeta

func NewLayerMeta() *LayerMeta

func (*LayerMeta) SetCopyright

func (n *LayerMeta) SetCopyright(copyright string)

func (*LayerMeta) SetDesc

func (n *LayerMeta) SetDesc(desc string)

func (*LayerMeta) SetDrawingInfo

func (n *LayerMeta) SetDrawingInfo(drawingInfo string)

func (*LayerMeta) SetElevationInfo

func (n *LayerMeta) SetElevationInfo(elevationInfo string)

func (*LayerMeta) SetHeightModel

func (n *LayerMeta) SetHeightModel(hmode HeightModel)

func (*LayerMeta) SetHeightModelInfoHeightUnit

func (n *LayerMeta) SetHeightModelInfoHeightUnit(hu HeightUnit)

func (*LayerMeta) SetHeightModelInfoVertCrs

func (n *LayerMeta) SetHeightModelInfoVertCrs(crs string)

func (*LayerMeta) SetName

func (n *LayerMeta) SetName(name string)

func (*LayerMeta) SetNormalReferenceFrame

func (n *LayerMeta) SetNormalReferenceFrame(normal_reference_frame NormalReferenceFrame)

func (*LayerMeta) SetPopupInfo

func (n *LayerMeta) SetPopupInfo(popupInfo string)

func (*LayerMeta) SetSpatialReferenceLatestVcsid

func (n *LayerMeta) SetSpatialReferenceLatestVcsid(vcsid int32)

func (*LayerMeta) SetSpatialReferenceLatestWkid

func (n *LayerMeta) SetSpatialReferenceLatestWkid(wkid int32)

func (*LayerMeta) SetSpatialReferenceVcsid

func (n *LayerMeta) SetSpatialReferenceVcsid(vcsid int32)

func (*LayerMeta) SetSpatialReferenceWkid

func (n *LayerMeta) SetSpatialReferenceWkid(wkid int32)

func (*LayerMeta) SetSpatialReferenceWkt

func (n *LayerMeta) SetSpatialReferenceWkt(wkt string)

func (*LayerMeta) SetTimestamp

func (n *LayerMeta) SetTimestamp(timestamp uint64)

func (*LayerMeta) SetType

func (n *LayerMeta) SetType(tp LayerType)

func (*LayerMeta) SetUID

func (n *LayerMeta) SetUID(uid string)

type LayerType

type LayerType C.int

type LayerWriter

type LayerWriter struct {
	// contains filtered or unexported fields
}

func CreateDefaultWriter

func CreateDefaultWriter(lt LayerType, name string, slpkPath string) *LayerWriter

func NewLayerWriter

func NewLayerWriter(ctx *WriterContext, path string) *LayerWriter

func NewLayerWriterWithSlpkWriter

func NewLayerWriterWithSlpkWriter(ctx *WriterContext, adapt *SlpkWriterAdapt) *LayerWriter

func (*LayerWriter) CreateMesh

func (n *LayerWriter) CreateMesh(mesh *RawMesh, node *NodeData)

func (*LayerWriter) CreateNode

func (n *LayerWriter) CreateNode(node *NodeData, nodeId NodeID)

func (*LayerWriter) CreateOutputNode

func (n *LayerWriter) CreateOutputNode(node *NodeData, nodeId NodeID)

func (*LayerWriter) CreatePoints

func (n *LayerWriter) CreatePoints(pts *RawPoints, node *NodeData)

func (*LayerWriter) ProcessChildren

func (n *LayerWriter) ProcessChildren(node *NodeData, nodeId NodeID)

func (*LayerWriter) Save

func (n *LayerWriter) Save()

func (*LayerWriter) SetAttributeMeta

func (n *LayerWriter) SetAttributeMeta(idx int32, meta *AttributeMeta, schemaId int32)

func (*LayerWriter) SetLayerMeta

func (n *LayerWriter) SetLayerMeta(meta *LayerMeta)

type LegacyImageChannel

type LegacyImageChannel C.int

type LegacyTopology

type LegacyTopology C.int

type LegacyUVSet

type LegacyUVSet C.int

type LegacyWrapMode

type LegacyWrapMode C.int

type LodMetricType

type LodMetricType C.int

type MaterialData

type MaterialData struct {
	// contains filtered or unexported fields
}

func (*MaterialData) AppendMetallicRoughnessBaseColorTex

func (n *MaterialData) AppendMetallicRoughnessBaseColorTex(tex *TextureBuffer)

func (*MaterialData) AppendMetallicRoughnessMetallicRoughnessTex

func (n *MaterialData) AppendMetallicRoughnessMetallicRoughnessTex(tex *TextureBuffer)

func (*MaterialData) AppendNormalMapTex

func (n *MaterialData) AppendNormalMapTex(tex *TextureBuffer)

func (*MaterialData) SetMaterialPropertiesAlphaCutOff

func (n *MaterialData) SetMaterialPropertiesAlphaCutOff(alpha_cut_off int)

func (*MaterialData) SetMaterialPropertiesAlphaMode

func (n *MaterialData) SetMaterialPropertiesAlphaMode(alpha_mode AlphaMode)

func (*MaterialData) SetMaterialPropertiesCullFace

func (n *MaterialData) SetMaterialPropertiesCullFace(cull_face FaceCullingMode)

func (*MaterialData) SetMaterialPropertiesDoubleSided

func (n *MaterialData) SetMaterialPropertiesDoubleSided(double_sided bool)

func (*MaterialData) SetMaterialPropertiesEmissiveFactor

func (n *MaterialData) SetMaterialPropertiesEmissiveFactor(emissive_factor []float32)

func (*MaterialData) SetMetallicRoughnessBaseColorFactor

func (n *MaterialData) SetMetallicRoughnessBaseColorFactor(base_color_factor []float32)

func (*MaterialData) SetMetallicRoughnessBaseColorTex

func (n *MaterialData) SetMetallicRoughnessBaseColorTex(texs []*TextureBuffer)

func (*MaterialData) SetMetallicRoughnessMetallicFactor

func (n *MaterialData) SetMetallicRoughnessMetallicFactor(metallic_factor float32)

func (*MaterialData) SetMetallicRoughnessMetallicRoughnessTex

func (n *MaterialData) SetMetallicRoughnessMetallicRoughnessTex(texs []*TextureBuffer)

func (*MaterialData) SetMetallicRoughnessRoughnessFactor

func (n *MaterialData) SetMetallicRoughnessRoughnessFactor(roughness_factor float32)

func (*MaterialData) SetNormalMapTex

func (n *MaterialData) SetNormalMapTex(texs []*TextureBuffer)

type Mesh

type Mesh struct {
	// contains filtered or unexported fields
}

func NewMesh

func NewMesh(m *C.struct__i3s_mesh_data_t) *Mesh

func (*Mesh) GetMaterial

func (n *Mesh) GetMaterial() *MaterialData

func (*Mesh) SetColor

func (n *Mesh) SetColor(c []byte)

type MeshTopology

type MeshTopology C.int

type MimeEncoding

type MimeEncoding C.uint

type MimeImageFormat

type MimeImageFormat C.int

type MimeType

type MimeType C.uint

type NodeData

type NodeData struct {
	// contains filtered or unexported fields
}

func NewNodeData

func NewNodeData() *NodeData

func (*NodeData) ApppendChildren

func (n *NodeData) ApppendChildren(nodeId NodeID)

func (*NodeData) GetMeshData

func (n *NodeData) GetMeshData() *Mesh

func (*NodeData) SetChildrens

func (n *NodeData) SetChildrens(nodeIds []NodeID)

func (*NodeData) SetLodThreshold

func (n *NodeData) SetLodThreshold(lodThreshold float64)

func (*NodeData) SetNodeDepth

func (n *NodeData) SetNodeDepth(nodeDepth int32)

type NodeID

type NodeID C.size_t

type NormalReferenceFrame

type NormalReferenceFrame C.int

type PcslAttributeBufferType

type PcslAttributeBufferType C.int

type RawMesh

type RawMesh struct {
	// contains filtered or unexported fields
}

func NewRawMesh

func NewRawMesh() *RawMesh

func (*RawMesh) SetTexture

func (n *RawMesh) SetTexture(size []int32, data []uint8)

func (*RawMesh) SetTextureImage

func (n *RawMesh) SetTextureImage(t interface{})

func (*RawMesh) SetVertex

func (n *RawMesh) SetVertex(vertexs []float64, uvs []float64, indices []uint32)

type RawPoints

type RawPoints struct {
	// contains filtered or unexported fields
}

func NewRawPoints

func NewRawPoints() *RawPoints

func (*RawPoints) SetPoints

func (n *RawPoints) SetPoints(vertexs []float64, fids []uint32)

type Rgba8

type Rgba8 [4]C.uchar

type SlpkWriter

type SlpkWriter interface {
	CreateArchive(path string, flags CreateFlags) bool
	AppendFile(path string, buf []byte, tp MimeType, pack MimeEncoding) bool
	GetFile(path string) []byte
	Finalize() bool
}

type SlpkWriterAdapt

type SlpkWriterAdapt struct {
	// contains filtered or unexported fields
}

func NewSlpkWriterAdapt

func NewSlpkWriterAdapt(ctx SlpkWriter) *SlpkWriterAdapt

type SpatialReference

type SpatialReference struct {
	// contains filtered or unexported fields
}

func (*SpatialReference) GetLatestVCSID

func (n *SpatialReference) GetLatestVCSID() int32

func (*SpatialReference) GetLatestWKID

func (n *SpatialReference) GetLatestWKID() int32

func (*SpatialReference) GetVCSID

func (n *SpatialReference) GetVCSID() int32

func (*SpatialReference) GetWKID

func (n *SpatialReference) GetWKID() int32

func (*SpatialReference) GetWKT

func (n *SpatialReference) GetWKT() string

type StatisticsStatus

type StatisticsStatus C.int

type TextureBuffer

type TextureBuffer struct {
	// contains filtered or unexported fields
}

func NewTextureBuffer

func NewTextureBuffer(size []int32, data []uint8) *TextureBuffer

func NewTextureBufferWithImage

func NewTextureBufferWithImage(t interface{}) *TextureBuffer

func (*TextureBuffer) GetMeta

func (n *TextureBuffer) GetMeta() *TextureMeta

type TextureID

type TextureID C.int

type TextureMeta

type TextureMeta struct {
	// contains filtered or unexported fields
}

func NewTextureMeta

func NewTextureMeta(m *C.struct__i3s_texture_meta_t) *TextureMeta

func (*TextureMeta) SetAlphaStatus

func (n *TextureMeta) SetAlphaStatus(alphaStatus AlphaStatus)

func (*TextureMeta) SetFormat

func (n *TextureMeta) SetFormat(format ImageFormat)

func (*TextureMeta) SetIsAtlas

func (n *TextureMeta) SetIsAtlas(isAtlas bool)

func (*TextureMeta) SetMip0Height

func (n *TextureMeta) SetMip0Height(mip0Height int32)

func (*TextureMeta) SetMip0Width

func (n *TextureMeta) SetMip0Width(mip0Width int32)

func (*TextureMeta) SetMipCount

func (n *TextureMeta) SetMipCount(mipCount int32)

func (*TextureMeta) SetUVSet

func (n *TextureMeta) SetUVSet(uvSet int32)

func (*TextureMeta) SetWrapMode

func (n *TextureMeta) SetWrapMode(wrapMode WrapMode)

type TextureSemantic

type TextureSemantic C.int

type UVRegion

type UVRegion [4]C.uchar

type VBBinding

type VBBinding C.int

type ValueEncoding

type ValueEncoding C.int

type VertexAttribOrdering

type VertexAttribOrdering C.int

type VerticalExagMode

type VerticalExagMode C.int

type VxlVariableSemantic

type VxlVariableSemantic C.int

type WrapMode

type WrapMode C.int

type WriterContext

type WriterContext struct {
	// contains filtered or unexported fields
}

func NewWriterContext

func NewWriterContext(prop *CtxProperties) *WriterContext

func NewWriterContextWithCartesianTransformation

func NewWriterContextWithCartesianTransformation(prop *CtxProperties, tran *CartesianTransformation) *WriterContext

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL