model2d

package
v0.0.0-...-b3eb65c Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AuthStatusNone    = 0
	AuthStatusSuccess = 1
	AuthStatusFailure = 2

	LinkStatusOffline    = 0
	LinkStatusConnecting = 1
	LinkStatusOnline     = 2
	LinkStatusClosing    = 3
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Drawer

type Drawer interface {
	// contains filtered or unexported methods
}

type Model2D

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

Model2D is the instance for sphere module

func NewInstance

func NewInstance(accessor *utils.Accessor, drawer Drawer, gl *utils.GL, follow, tail bool) *Model2D

NewInstance makes a new instance of Sphere

func (*Model2D) Run

func (s *Model2D) Run() error

Run is an entory point for sphere module

type Node

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

Node contains last information for each time

type ParameterCurrentPosition

type ParameterCurrentPosition struct {
	Coordinate struct {
		X float64 `bson:"x"`
		Y float64 `bson:"y"`
	} `bson:"coordinate"`
}

ParameterCurrentPosition is for decoding parameter of `current position` log

type ParameterLinkStatus

type ParameterLinkStatus struct {
	Seed    int  `bson:"seed"`
	Node    int  `bson:"node"`
	Auth    int  `bson:"auth"`
	Onlyone bool `bson:"onlyone"`
}

ParameterLinkStatus is for decodeing parameter of `link status` log

type ParameterLinks struct {
	Nids []string `bson:"nids"`
}

ParameterLinks is for decodeing parameter of `links` log

type ParameterRouting2DRequired

type ParameterRouting2DRequired struct {
	Nids map[string]struct {
		X float64 `bson:"x"`
		Y float64 `bson:"y"`
	}
}

ParameterRouting2DRequired is for decodeing parameter of `routing 2d required` log

type Plane

type Plane struct{}

type Sphere

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

Sphere is a drawer instance for sphere coordinate system

func NewSphereDrawer

func NewSphereDrawer(detailLevel uint) *Sphere

NewSphereDrawer make sphere drawer instance

Jump to

Keyboard shortcuts

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