|
//----------------------------------------------
// PathSegment3D.cs (c) 2007 by Charles Petzold
//----------------------------------------------
using System;
using System.Windows;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Media.Media3D;
namespace Petzold.Media3D
{
public abstract class PathSegment3D : Animatable
{
// IsStroked property.
// -------------------
public static readonly DependencyProperty IsStrokedProperty =
DependencyProperty.Register("IsStroked", typeof(bool),
typeof(PathSegment3D),
new PropertyMetadata(true));
public bool IsStroked
{
set { SetValue(IsStrokedProperty, value); }
get { return (bool)GetValue(IsStrokedProperty); }
}
// IsSmoothJoin property.
// ----------------------
public static readonly DependencyProperty IsSmoothJoinProperty =
DependencyProperty.Register("IsSmoothJoin", typeof(bool),
typeof(PathSegment3D),
new PropertyMetadata(false));
public bool IsSmoothJoin
{
set { SetValue(IsSmoothJoinProperty, value); }
get { return (bool)GetValue(IsSmoothJoinProperty); }
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
He is a Software Engineer at Rockwell Automation Asia Pacific Business Center, working on RSLogix 5000. Prior to joining Rockwell Automation, he had worked for Sybase for 8 years and was the original architect of the PowerBuilder Native Interface and the PowerBuilder .NET Compiler that can compile PowerBuilder applications to .NET Windows Forms or Web Forms applications. The programming languages he has used or is using intensively include C#, C++, C and 8086 assembly.
Wu XueSong's Blog