Go to Google Code Home
Google SketchUp SkpWriter C++ API Documentation (Labs)

Public Member Functions

atlast::sketchup::ISketchUpDrawingElement Class Reference

An object that appears on the screen. More...

#include <idrawingelement.h>

Inheritance diagram for atlast::sketchup::ISketchUpDrawingElement:
atlast::sketchup::ISketchUpGeometricElement atlast::sketchup::ISketchUpEntity atlast::sketchup::ISketchUpObject atlast::sketchup::ISketchUpComponentDefinition atlast::sketchup::ISketchUpComponentInstance atlast::sketchup::ISketchUpCurve atlast::sketchup::ISketchUpEdge atlast::sketchup::ISketchUpFace atlast::sketchup::ISketchUpGroup atlast::sketchup::ISketchUpArc atlast::sketchup::ISketchUpLineSegment atlast::sketchup::ISketchUpPolyline

List of all members.

Public Member Functions

virtual void SetVisible (bool isVisible)=0
 Set this object's visibility flag.
virtual bool IsVisible () const =0
 Get this object's visibility flag. See VC.
virtual void SetMaterial (const ISketchUpMaterial *pMaterial) THROWS(ISketchUpException &)=0
 Used to set the material on an object.
virtual void SetLayer (const ISketchUpLayer *pLayer) THROWS(ISketchUpException &)=0
 Set the layer for the current object.
virtual ISketchUpLayerPtr GetLayer () const =0
 Gets the layer upon which the current object lives.
virtual bool GetCastsShadows () const =0
 Does this element cast shadows?
virtual void SetCastsShadows (bool cast)=0
 Tell this object whether or not it should cast shadows.
virtual bool GetReceivesShadows () const =0
 Does this element cast shadows?
virtual void SetReceivesShadows (bool val)=0
 Tell this object whether or not it should cast shadows.

Detailed Description

An object that appears on the screen.


Member Function Documentation

virtual bool atlast::sketchup::ISketchUpDrawingElement::GetCastsShadows (  )  const [pure virtual]

Does this element cast shadows?

Return values:
true iff this object casts shadows.
virtual ISketchUpLayerPtr atlast::sketchup::ISketchUpDrawingElement::GetLayer (  )  const [pure virtual]

Gets the layer upon which the current object lives.

Return values:
The layer for this object.
virtual bool atlast::sketchup::ISketchUpDrawingElement::GetReceivesShadows (  )  const [pure virtual]

Does this element cast shadows?

Return values:
true iff this object receives shadows.
virtual bool atlast::sketchup::ISketchUpDrawingElement::IsVisible (  )  const [pure virtual]

Get this object's visibility flag. See VC.

Returns:
The visibility flag on this particular object.
virtual void atlast::sketchup::ISketchUpDrawingElement::SetCastsShadows ( bool  cast  )  [pure virtual]

Tell this object whether or not it should cast shadows.

Parameters:
cast Use 'true' to indicate that this object should cast shadows.
virtual void atlast::sketchup::ISketchUpDrawingElement::SetLayer ( const ISketchUpLayer pLayer  )  [pure virtual]

Set the layer for the current object.

Parameters:
pLayer The layer to put this object upon.
virtual void atlast::sketchup::ISketchUpDrawingElement::SetMaterial ( const ISketchUpMaterial *  pMaterial  )  [pure virtual]

Used to set the material on an object.

If the given parameter is NULL, the material on the object is removed and the default material determination is used. See MAT.

Parameters:
pMaterial The material to use.
virtual void atlast::sketchup::ISketchUpDrawingElement::SetReceivesShadows ( bool  val  )  [pure virtual]

Tell this object whether or not it should cast shadows.

Parameters:
cast Use 'true' to indicate that this object should cast shadows.
virtual void atlast::sketchup::ISketchUpDrawingElement::SetVisible ( bool  isVisible  )  [pure virtual]

Set this object's visibility flag.

If set to visible, this object still might not show up in the view - it's also a function of its component hierarchy and layer membership. See VC.


©2010 Google - Google Home - About Google