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

Public Member Functions

atlast::sketchup::ISketchUpLayer Interface Reference

A layer. More...

#include <ilayer.h>

Inheritance diagram for atlast::sketchup::ISketchUpLayer:
atlast::sketchup::ISketchUpEntity atlast::sketchup::ISketchUpObject

List of all members.

Public Member Functions

virtual AtLastUstring GetName () const =0
 Get the name of this layer.
virtual bool IsVisible () const =0
 Determine whether this layer is visible.
virtual void SetVisibility (bool is_visible)=0
 Set the layer's visibility.
virtual ISketchUpMaterialPtr GetMaterial () const =0
 Retrieves the material associated with this layer.

Detailed Description

A layer.


Member Function Documentation

virtual ISketchUpMaterialPtr atlast::sketchup::ISketchUpLayer::GetMaterial (  )  const [pure virtual]

Retrieves the material associated with this layer.

It is possible that the returned material will be NULL, in which case the Model's default color should be used.

If this layer is not valid, NULL is returned.

Returns:
The material used by this layer.
virtual AtLastUstring atlast::sketchup::ISketchUpLayer::GetName (  )  const [pure virtual]

Get the name of this layer.

If this layer is not valid, an empty string is returned.

Returns:
The name of the layer.
virtual bool atlast::sketchup::ISketchUpLayer::IsVisible (  )  const [pure virtual]

Determine whether this layer is visible.

If this layer is not valid, false is returned.

Returns:
true iff this layer is visible.
virtual void atlast::sketchup::ISketchUpLayer::SetVisibility ( bool  is_visible  )  [pure virtual]

Set the layer's visibility.

Parameters:
is_visible If true, the layer will be turned on.

©2010 Google - Google Home - About Google