Dart DocumentationthreeLineBasicMaterial

LineBasicMaterial class

@author mr.doob / http://mrdoob.com/ @author alteredq / http://alteredqualia.com/

Ported to Dart from JS by: @author rob silverton / http://www.unwrong.com/

parameters = { color: <hex>, opacity: <float>,

blending: THREE.NormalBlending, depthTest: <bool>,

linewidth: <float>, linecap: "round", linejoin: "round",

vertexColors: <bool>

fog: <bool> }

class LineBasicMaterial extends Material {
 Color color;
 num linewidth;
 String linecap;
 String linejoin;

 bool fog;

 // Before changing this please checkout issue #79
 dynamic vertexColors;


 LineBasicMaterial({ // LineBasicMaterial

                     num color: 0xffffff,

                     this.linewidth: 1,
                     this.linecap: 'round',
                     this.linejoin: 'round',

                     this.vertexColors: false,

                     this.fog: true,

                     // Material
                     name: '',
                     side: FrontSide,

                     opacity: 1,
                     transparent: false,

                     blending: NormalBlending,
                     blendSrc: SrcAlphaFactor,
                     blendDst: OneMinusSrcAlphaFactor,
                     blendEquation: AddEquation,

                     depthTest: true,
                     depthWrite: true,

                     polygonOffset: false,
                     polygonOffsetFactor: 0,
                     polygonOffsetUnits: 0,

                     alphaTest: 0,

                     overdraw: false,

                     visible: true })
     :
                     this.color = new Color(color),

                     super(  name: name,
                             side: side,
                             opacity: opacity,
                             transparent: transparent,
                             blending: blending,
                             blendSrc: blendSrc,
                             blendDst: blendDst,
                             blendEquation: blendEquation,
                             depthTest: depthTest,
                             depthWrite: depthWrite,
                             polygonOffset: polygonOffset,
                             polygonOffsetFactor: polygonOffsetFactor,
                             polygonOffsetUnits: polygonOffsetUnits,
                             alphaTest: alphaTest,
                             overdraw: overdraw,
                             visible: visible );
}

Extends

Material > LineBasicMaterial

Constructors

new LineBasicMaterial({num color: 0xffffff, num linewidth: 1, String linecap: 'round', String linejoin: 'round', vertexColors: false, bool fog: true, name: '', side: FrontSide, opacity: 1, transparent: false, blending: NormalBlending, blendSrc: SrcAlphaFactor, blendDst: OneMinusSrcAlphaFactor, blendEquation: AddEquation, depthTest: true, depthWrite: true, polygonOffset: false, polygonOffsetFactor: 0, polygonOffsetUnits: 0, alphaTest: 0, overdraw: false, visible: true}) #

Creates a new Object instance.

Object instances have no meaningful state, and are only useful through their identity. An Object instance is equal to itself only.

docs inherited from Object
LineBasicMaterial({ // LineBasicMaterial

                   num color: 0xffffff,

                   this.linewidth: 1,
                   this.linecap: 'round',
                   this.linejoin: 'round',

                   this.vertexColors: false,

                   this.fog: true,

                   // Material
                   name: '',
                   side: FrontSide,

                   opacity: 1,
                   transparent: false,

                   blending: NormalBlending,
                   blendSrc: SrcAlphaFactor,
                   blendDst: OneMinusSrcAlphaFactor,
                   blendEquation: AddEquation,

                   depthTest: true,
                   depthWrite: true,

                   polygonOffset: false,
                   polygonOffsetFactor: 0,
                   polygonOffsetUnits: 0,

                   alphaTest: 0,

                   overdraw: false,

                   visible: true })
   :
                   this.color = new Color(color),

                   super(  name: name,
                           side: side,
                           opacity: opacity,
                           transparent: transparent,
                           blending: blending,
                           blendSrc: blendSrc,
                           blendDst: blendDst,
                           blendEquation: blendEquation,
                           depthTest: depthTest,
                           depthWrite: depthWrite,
                           polygonOffset: polygonOffset,
                           polygonOffsetFactor: polygonOffsetFactor,
                           polygonOffsetUnits: polygonOffsetUnits,
                           alphaTest: alphaTest,
                           overdraw: overdraw,
                           visible: visible );

Properties

num alphaTest #

inherited from Material
num alphaTest

int blendDst #

inherited from Material
int blending, blendSrc, blendDst

int blendEquation #

inherited from Material
int blending, blendSrc, blendDst, blendEquation

int blending #

inherited from Material
int blending

int blendSrc #

inherited from Material
int blending, blendSrc

Color color #

Color color

bool depthTest #

inherited from Material
bool transparent, depthTest

bool depthWrite #

inherited from Material
bool transparent, depthTest, depthWrite

bool fog #

bool fog

int id #

inherited from Material
int id

String linecap #

String linecap

String linejoin #

String linejoin

num linewidth #

num linewidth

String name #

inherited from Material
String name

bool needsUpdate #

inherited from Material
bool needsUpdate

num opacity #

inherited from Material
num opacity

bool overdraw #

inherited from Material
bool transparent, depthTest, depthWrite, overdraw

bool polygonOffset #

inherited from Material
bool polygonOffset

int polygonOffsetFactor #

inherited from Material
int polygonOffsetFactor

int polygonOffsetUnits #

inherited from Material
int polygonOffsetFactor, polygonOffsetUnits

int side #

inherited from Material
int side

bool transparent #

inherited from Material
bool transparent

var vertexColors #

dynamic vertexColors

bool visible #

inherited from Material
bool visible

Operators

dynamic operator [](String key) #

inherited from Material
operator [] (String key) => _data[key];

dynamic operator []=(String key, value) #

inherited from Material
operator []= (String key, value) => _data[key] = value;