renderer

package
v0.0.0-...-274238e Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2021 License: BSD-2-Clause Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddToByteBuffer

func AddToByteBuffer(value int)

AddToByteBuffer adding sent bytes to the history stack

func DrawByteGraph

func DrawByteGraph(img *image.RGBA) *image.RGBA

DrawByteGraph draws the histroy of sent bytes onto the image

func LoadRenderingApp

func LoadRenderingApp(app *RenderingApp, sessionId string, h int, w int, write chan []byte, read chan []byte, modelpath string)

LoadRenderingApp loads the rendering application

Types

type Command

type Command struct {
	X     float32
	Y     float32
	Cmd   string
	Val   string
	Moved bool
	Ctrl  bool
}

Command received from client

type ImageSettings

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

ImageSettings for rendering image

type Message

type Message struct {
	Action string `json:"action"`
	Value  string `json:"value"`
}

Message for client

type Quality

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

Quality Image quality settings for still and navigating situations

type RenderingApp

type RenderingApp struct {
	application.Application

	Width  int
	Height int

	Debug bool
	// contains filtered or unexported fields
}

RenderingApp application settings

func (*RenderingApp) Close

func (app *RenderingApp) Close(cmd Command)

Closes connection

func (*RenderingApp) Debugmode

func (app *RenderingApp) Debugmode(cmd Command)

Debugmode toggles bytegraph

func (*RenderingApp) Encoder

func (app *RenderingApp) Encoder(cmd Command)

Enocder settings

func (*RenderingApp) Focus

func (app *RenderingApp) Focus(cmd Command)

Focus on selection

func (*RenderingApp) Fov

func (app *RenderingApp) Fov(cmd Command)

Fov applies field of view

func (*RenderingApp) Hide

func (app *RenderingApp) Hide(cmd Command)

Hide selected element

func (*RenderingApp) Imagesettings

func (app *RenderingApp) Imagesettings(cmd Command)

Imagesettings applies rendering settings

func (*RenderingApp) Invert

func (app *RenderingApp) Invert(cmd Command)

Invert image

func (*RenderingApp) Keydown

func (app *RenderingApp) Keydown(cmd Command)

Keydown event

func (*RenderingApp) Keyup

func (app *RenderingApp) Keyup(cmd Command)

Keyup event

func (*RenderingApp) Mousedown

func (app *RenderingApp) Mousedown(cmd Command)

Mousedown triggers a mousedown event

func (*RenderingApp) Mouseup

func (app *RenderingApp) Mouseup(cmd Command)

Mouseup event

func (*RenderingApp) Navigate

func (app *RenderingApp) Navigate(cmd Command)

Navigate orbit navigation

func (*RenderingApp) Quality

func (app *RenderingApp) Quality(cmd Command)

Quality settings

func (*RenderingApp) Unhide

func (app *RenderingApp) Unhide(cmd Command)

Unhide all hidden elements

func (*RenderingApp) Userdata

func (app *RenderingApp) Userdata(cmd Command)

Send element userdata to client

func (*RenderingApp) View

func (app *RenderingApp) View(cmd Command)

View sets standard views

func (*RenderingApp) Zoom

func (app *RenderingApp) Zoom(cmd Command)

Zoom in/out scene

func (*RenderingApp) Zoomextent

func (app *RenderingApp) Zoomextent(cmd Command)

Zoomextent entire model

Jump to

Keyboard shortcuts

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