properties

package
v0.32.1 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PropertiesCommand = &cli.Command{
	Name:  "property",
	Usage: "commands around interacting with properties within a ply file",
	Flags: []cli.Flag{
		flags.PlyFile,
	},
	Subcommands: []*cli.Command{
		removePropertiesCommand,
		addPropertiesCommand,
		analyzePropertiesCommand,
	},
}

Functions

func InSlice added in v0.17.0

func InSlice[T comparable](a T, list []T) bool

func PropertiesToAddFromArguments

func PropertiesToAddFromArguments(args []string) []ply.Property

Types

type Analyzer added in v0.17.0

type Analyzer interface {
	Analyze(buf []byte, endian binary.ByteOrder)
	Print(out io.Writer)
}

type Blocks

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

type ContinuousPropertyAnalyzer added in v0.32.1

type ContinuousPropertyAnalyzer[T Number] struct {
	Name   string
	Offset int
	End    int
	Min    T
	Max    T
}

func (*ContinuousPropertyAnalyzer[T]) Analyze added in v0.32.1

func (pa *ContinuousPropertyAnalyzer[T]) Analyze(buf []byte, endian binary.ByteOrder)

func (*ContinuousPropertyAnalyzer[T]) Print added in v0.32.1

func (pa *ContinuousPropertyAnalyzer[T]) Print(out io.Writer)

type DiscretePropertyAnalyzer added in v0.32.1

type DiscretePropertyAnalyzer[T Number] struct {
	Name           string
	Offset         int
	End            int
	Min            T
	Max            T
	Counts         map[T]int
	BuildHistogram bool
}

func (*DiscretePropertyAnalyzer[T]) Analyze added in v0.32.1

func (pa *DiscretePropertyAnalyzer[T]) Analyze(buf []byte, endian binary.ByteOrder)

func (*DiscretePropertyAnalyzer[T]) Print added in v0.32.1

func (pa *DiscretePropertyAnalyzer[T]) Print(out io.Writer)

type Number added in v0.19.0

type Number interface {
	int64 | float64 | int8 | byte | int16 | uint16 | int32 | uint32 | float32
}

type SortByHistogramKey added in v0.19.0

type SortByHistogramKey[T Number] []histogramEntry[T]

func (SortByHistogramKey[T]) Len added in v0.19.0

func (a SortByHistogramKey[T]) Len() int

func (SortByHistogramKey[T]) Less added in v0.19.0

func (a SortByHistogramKey[T]) Less(i, j int) bool

func (SortByHistogramKey[T]) Swap added in v0.19.0

func (a SortByHistogramKey[T]) Swap(i, j int)

Jump to

Keyboard shortcuts

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