drawer

package module
v0.0.0-...-382d8a8 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2022 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AniDrawer

type AniDrawer interface {
	Drawer
	StartAnimate()
	NextFrame()
}

type Arrow

type Arrow int
const (
	NoArrow     Arrow = 0
	LeftArrow   Arrow = 1
	NormalArrow Arrow = 2
)

type Drawer

type Drawer interface {
	MakeNode(loc []float64, size float64, t1 string, t2 string, shape Shape, style int) (ind int)
	DrawNodeLine(i1, i2 int, arrow Arrow, text string, style int)
	DrawLine(p1, p2 []float64, arrow Arrow, text string, style int)
	GetNumStyle() int
	Finish()
}

type Shape

type Shape int
const (
	Invisable Shape = 0 // valid parameters: loc
	Point     Shape = 1 // valid parameters: loc, size, style
	Rectangle Shape = 2 // valid parameters: loc, size, t1, t2, style
	Circle    Shape = 3 // valid parameters: loc, size, t1, t2, style
	TextBox   Shape = 4 // valid parameters: loc, t1, t2
)

type TikzAniDrawer

type TikzAniDrawer struct {
	*TikzDrawer
	// contains filtered or unexported fields
}

func InitTikzAniDrawer

func InitTikzAniDrawer(fprep string, scale float64) *TikzAniDrawer

func (*TikzAniDrawer) NextFrame

func (tad *TikzAniDrawer) NextFrame()

func (*TikzAniDrawer) StartAnimate

func (tad *TikzAniDrawer) StartAnimate()

type TikzDrawer

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

func InitTikzDrawer

func InitTikzDrawer(fout_name string, scale float64) *TikzDrawer

func (*TikzDrawer) DrawLine

func (td *TikzDrawer) DrawLine(p1, p2 []float64, arrow Arrow, text string, style int)

func (*TikzDrawer) DrawNodeLine

func (td *TikzDrawer) DrawNodeLine(i1, i2 int, arrow Arrow, text string, style int)

func (*TikzDrawer) Finish

func (td *TikzDrawer) Finish()

func (*TikzDrawer) GetNumStyle

func (td *TikzDrawer) GetNumStyle() int

func (*TikzDrawer) MakeNode

func (td *TikzDrawer) MakeNode(loc []float64, size float64, t1 string, t2 string, shape Shape, style int) (ind int)

Jump to

Keyboard shortcuts

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